HTML Drag And Drop On Mobile Devices

后端 未结 8 974
栀梦
栀梦 2020-11-29 16:28

When you add drag and drop to a web page using JavaScript, such as jQuery UI draggable and droppable, how do you get this to work when viewed via a browser on a mobile devic

8条回答
  •  情深已故
    2020-11-29 16:37

    The beta version of Sencha Touch has drag and drop support.

    You can refer to their DnD Example. This only works on webkit browsers by the way.

    Retrofitting that logic into a web page is probably going to be difficult. As I understand it they disable all browser panning and implement panning events entirely in javascript, allowing correct interpretation of drag and drop.

    Update: the original example link is dead, but I found this alternative:
    https://github.com/kostysh/Drag-Drop-example-for-Sencha-Touch

提交回复
热议问题