¡@

Home 

2014/10/16 ¤W¤È 08:26:43

android Programming Glossary: touchhandled

jQuery Drag and Drop on touch devices (iPad, Android)

http://stackoverflow.com/questions/5796109/jquery-drag-and-drop-on-touch-devices-ipad-android

without touch support if .support.touch return var mouseProto .ui.mouse.prototype _mouseInit mouseProto._mouseInit touchHandled function simulateMouseEvent event simulatedType use this function to simulate mouse event Ignore multi touch events if event.originalEvent.touches.length.. mouseProto._touchStart function event var self this Ignore the event if another widget is already being handled if touchHandled self._mouseCapture event.originalEvent.changedTouches 0 return Set the flag to prevent other widgets from inheriting the.. event.originalEvent.changedTouches 0 return Set the flag to prevent other widgets from inheriting the touch event touchHandled true Track movement to determine if interaction was a click self._touchMoved false Simulate the mouseover event simulateMouseEvent..