aschemschat / range-slider

A range-slider-component for Vaadin 8
Apache License 2.0
0 stars 1 forks source link

Move the range - both slider at once #4

Open FackelAB opened 5 years ago

FackelAB commented 5 years ago

Think about this scenario: The Range of the silder is 0 up to 100. The min Difference is 2 and the max Difference is 10. The actual value 8-10.

You want to move the range to 20-30.

Now you must move the silders in this way: Upper to 18 Lower to 16 Upper to 26 Lower to 20 Upper to 30

But it would be great if it would be possible to grab the upper one and pull it 30. While the lower once follow the upper once in the distance of the maximum difference. The result would be the lower is after moving of the upper once is at 20.

Or you move the lower once to 20 and the upper once moves in the distance of the minimumDifference at once - after the moving of the lower once the upper once would be on 22.