soundar24 / roundSlider

roundSlider - A free jQuery plugin
https://roundsliderui.com/
MIT License
264 stars 80 forks source link

Support clicks/dragging inside the circle #55

Open tbrannt opened 7 years ago

tbrannt commented 7 years ago

I switched from https://github.com/princejwesley/circular-slider to this slider because the circular slider didn't support changing the the sliders value when the mouse went out of the circle. I was happy to see that this intuitive behavior is supported by the roundSlider.

Unfortunately in contrast to circular-slider the roundSlider from this site does not support dragging with the mouse inside the circle. Especially for use on mobile devices you're more or less forced to choose a broad slider bar. I think it would be a clear enhancement without any drawbacks to also support clicking and dragging inside the roundSlider as also https://github.com/princejwesley/circular-slider supports.

soundar24 commented 7 years ago

Actually I considered this at the initial time itself, you can check the below report regarding the requirement: https://github.com/soundar24/roundSlider/issues/4

At that time due to other things concentration i didn't considered this, but i already provided the workaround solution for this requirement:

http://jsfiddle.net/soundar24/utqgufx0/295/

Please check the above demo and confirm me whether this is your required behavior, if yes then i will include in the source soon (maybe within 1 or 2 weeks).

tbrannt commented 7 years ago

That's exactly the behavior I was thinking about! Thanks very much for the fast reply. Having this in the next version would be awesome.

soundar24 commented 7 years ago

Yes, I will consider this and it will be available in the next release. Thanks :)