Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't drag after touch #62

Open
splashful opened this issue Mar 7, 2017 · 5 comments
Open

Can't drag after touch #62

splashful opened this issue Mar 7, 2017 · 5 comments

Comments

@splashful
Copy link

If you touch a point on the slider you are then restricted from dragging unless you do a second touch. I understand the logic here but in some cases this makes operation difficult. Is there a way to enable slide after touch without Second touch?

@soundar24
Copy link
Owner

The mentioned requirement was already considered here: #55

Also in the next version i planned to include this feature. Currently I have provided the sample level workaround to achieve this. Check the below demo and let me know your comments:

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

@splashful
Copy link
Author

Very nice!! That's working great. However, I read #55 several times carefully and have no idea what he's talking about. It seems to be unrelated to my issue.

@soundar24
Copy link
Owner

Actually in #55, he reported that changing the value by dragging the handle was hard since in mobile devices its difficult to grab the smaller handle. So he requested a behavior like to change the value by dragging anywhere inside the circle.

Here your requirement also, in initial touch the events may not be hook so that it needed the second touch. But by changing the drag area to the whole circle will solve both the problems. This was done in the mentioned samples as workaround, so it might solves your requirement.

If any additional requirement needed with this behavior then you can update that details also..

@splashful
Copy link
Author

splashful commented Apr 21, 2017

Hi again. In your previous comment, you offered a solution that worked well. However, I have found that the disable method now fails, and does not disable the slider.

$(".slider").roundSlider("disable");

However, when I remove the previous customization, the disable works correctly.

@soundar24
Copy link
Owner

soundar24 commented Apr 22, 2017

Yes, I can see the issue. Now i have updated the demo to resolve the issue, check the below fiddle:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants