HTML Drag And Drop On Mobile Devices

后端 未结 8 1014
栀梦
栀梦 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:53

    jQuery UI Touch Punch just solves it all.

    It's a Touch Event Support for jQuery UI. Basically, it just wires touch event back to jQuery UI. Tested on iPad, iPhone, Android and other touch-enabled mobile devices. I used jQuery UI sortable and it works like a charm.

    http://touchpunch.furf.com/

提交回复
热议问题