Lines Matching full:touch
2 * jQuery UI Touch Punch 0.2.3
13 // Detect touch support
14 $.support.touch = 'ontouchend' in document;
16 // Ignore browsers without touch support
17 if (!$.support.touch) {
27 * Simulate a mouse event based on a corresponding touch event
28 * @param {Object} event A touch event
33 // Ignore multi-touch events
40 var touch = event.originalEvent.changedTouches[0],
43 // Initialize the simulated mouse event using the touch event's coordinates
50 touch.screenX, // screenX
51 touch.screenY, // screenY
52 touch.clientX, // clientX
53 touch.clientY, // clientY
79 // Set the flag to prevent other widgets from inheriting the touch event
130 // If the touch interaction did not move, it should trigger a click
137 // Unset the flag to allow other widgets to inherit the touch event
142 * A duck punch of the $.ui.mouse _mouseInit method to support touch events.
143 * This method extends the widget with bound touch event handlers that
144 * translate touch events to mouse events and pass them to the widget's
151 // Delegate the touch handlers to the widget's element
163 * Remove the touch event handlers
169 // Delegate the touch handlers to the widget's element