Will jqueryUI Drag & Drop work with the tablet?

If I use the jQueryUI Drag and Drop plugin, will it work as expected on the tablet?

I am worried if the tablet thinks that the user is trying to scroll the page, rather than dragging an item.

I don’t have a pill for testing, so I was wondering if anyone knows if this is a problem or not, and if so, is there any work around?

+6
source share
2 answers

You can do this, but you will need to use http://www.gotproject.com/blog/post2.html

+1
source

Gotproject gave me problems when I tried to make jQueryUI.dialog () draggable with it.

I had better results with the jQueryUI TouchPunch library:

http://touchpunch.furf.com/

This allowed me to make my dialog draggable and resizable using standard jQueryUI methods, for example:

$("#divSingleNamePicker").parent().draggable().resizeable(); 

(NB: there is .parent (), because jqueryUI.dialog () wraps your target div with its own div.)

Correction 10/25/2012

I was mistaken in the need to add the line .draggable (). resizeable () in jQuery.Dialog (). Just loading the touch-punch library was enough to make it drag-and-drop and automatically resizable.

+10
source

Source: https://habr.com/ru/post/885887/


All Articles