Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3564

Slider snap to multiple of step when dragging

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 8.0.3
    • Fix Version/s: 8.5.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S1, ZK 8.5.2 S2

      Description

      In ZK 8.0.3, when dragging a slider button, the value of the slider will be calculated based on slider width / current position (in px)
      This cause the slider value not to match with the declared step value if the width in px is smaller than the number of steps between min and max slider values.
      test with:

      <slider id="sld" width="190px" minpos="0" maxpos="1000" step="10" />
      

      The following override shows the intended result:
      http://zkfiddle.org/sample/pv4vlc/3-Slider-snap-to-step

        Activity

        Hide
        Anonymous added a comment -

        Ready since 2018/06/29

        Show
        Anonymous added a comment - Ready since 2018/06/29

          People

          • Assignee:
            CharlesQiu CharlesQiu
            Reporter:
            MDuchemin MDuchemin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4 hours
              4h
              Remaining:
              Time Spent - 2 hours, 30 minutes Remaining Estimate - 1 hour, 30 minutes
              1h 30m
              Logged:
              Time Spent - 2 hours, 30 minutes Remaining Estimate - 1 hour, 30 minutes
              2h 30m

                Agile