HTML Drag And Drop On Mobile Devices

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

    I needed to create a drag and drop + rotation that works on desktop, mobile, tablet including windows phone. The last one made it more complicated (mspointer vs. touch events).

    The solution came from The great Greensock library

    It took some jumping through hoops to make the same object draggable and rotatable but it works perfectly

提交回复
热议问题