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

Slider snap to multiple of step when dragging

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 8.5.2
    • 8.0.3
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S1, ZK 8.5.2 S2

      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

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

              Created:
              Updated:
              Resolved:

                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