LeaVerou / multirange

A tiny polyfill for HTML5 multi-handle sliders
http://projects.verou.me/multirange/
MIT License
605 stars 82 forks source link

Move the closest handle #4

Open teolag opened 8 years ago

teolag commented 8 years ago

Clicking on the track moves only the one handle. I think it would be more intuitive to move the closest handle.

Example: If range is set from 40% to 60% and i tap at 80% the range should be 40% to 80% If the initial range is the same and i tap at 20% the final range will be 20% to 60%

LeaVerou commented 8 years ago

I agree, but due to the way it's implemented, this would be pretty tricky. :/