bitovi / jquerypp

jQuery's missing utils and special events
http://jquerypp.com
MIT License
1.21k stars 160 forks source link

Support for devices with mouse and touch at once #118

Open wclr opened 9 years ago

wclr commented 9 years ago

It seem that drag designed only support touch or mouse events depending on device type. But there are also device with simultaneous support of both event times (for example windows computers with touch screen)

jdsull3002 commented 8 years ago

I've run into this as well. I managed to patch this by changing the jquery++ drag core start,stop, and moveEvents mouse events only.

I also added the advice from this post in my drag initer http://stackoverflow.com/questions/1517924/javascript-mapping-touch-events-to-mouse-events.

Mostly works except for the deprecated MouseEvent syntax.

jdsull3002 commented 8 years ago

Nevermind, I had to just hard code touch tests to false and bind all the event listeners to mouse events.