I am new in web mobile.
When i want to make draggable item in we i just use jquery ui, what is the way to do it in mobile web application?(i am using jquerymobile)
Should we use jquery ui for that also in web mobile or exist other good way?
Thanks,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
jQuery mobile has no built in support for creating draggables. Bringing in jQuery UI to create draggables will work fine providing you bring in something to make touch events work (jQuery UI doesn’t support touch events currently). jQuery UI Touch Punch is a good choice to provide such functionality.
A custom build of jQuery UI that only includes the draggable plugin and its dependencies is only 4 K minified. jQuery UI Touch Punch is 1/2 K. By comparison jQuery itself is 32 K. jQuery UI’s draggable is quite robust so I think it’s worth it.
There’s some relevant discussion and a more lightweight solution in this answer as well – Javascript Drag and drop for touch devices.