I’m having some problems while implementing jQuery Draggable http://jqueryui.com/demos/draggable/ on Android. I’ve created the html code and tested it using my browser. Then I compiled it on build.phonegap.com. After getting the .apk I installed it on my xperia x8 which is using Android 2.2 Froyo. The application ran well, but when I dragged the object it won’t move..
Is there something wrong with my method?
Thanks
I’m having some problems while implementing jQuery Draggable http://jqueryui.com/demos/draggable/ on Android. I’ve created the
Share
This code maps
touchstart,touchmoveandtouchendto their appropriate mouse events:There is still a bug with
touchstart/mousedown, because the coordinates cannot be mapped directly.My idea to fix this is to delay the
mousedowndispatch until atouchmoveoccurs and then dispatch both mouse events with the coordinates oftouchmove.