jquery.event.ue
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -363,5 +363,7 @@ /* | ||
if ( $target.is( option_map.ignore_class ) ) { return; } | ||
// Prevent default only after confirming handling this event | ||
event_src.preventDefault(); | ||
cb_map = callbackList.pop(); | ||
while ( cb_map ) { | ||
@@ -456,2 +458,5 @@ if ( $target.is( cb_map.selector_str ) | ||
// Prevent default only after confirming handling this event | ||
event_src.preventDefault(); | ||
motion_map = motionMapMap[motion_id]; | ||
@@ -692,10 +697,4 @@ option_map = motion_map.option_map; | ||
switch ( event.type ) { | ||
case 'touchstart' : | ||
handler_fn = fnMotionStart; | ||
event.preventDefault(); | ||
break; | ||
case 'touchmove' : | ||
handler_fn = fnMotionMove; | ||
event.preventDefault(); | ||
break; | ||
case 'touchstart' : handler_fn = fnMotionStart; break; | ||
case 'touchmove' : handler_fn = fnMotionMove; break; | ||
case 'touchend' : | ||
@@ -750,6 +749,3 @@ case 'touchcancel' : handler_fn = fnMotionEnd; break; | ||
case 'mouseup' : handler_fn = fnMotionEnd; break; | ||
case 'mousemove' : | ||
handler_fn = fnMotionMove; | ||
event.preventDefault(); | ||
break; | ||
case 'mousemove' : handler_fn = fnMotionMove; break; | ||
default : handler_fn = null; | ||
@@ -756,0 +752,0 @@ } |
{ | ||
"name": "jquery.event.ue", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Respond to Touch and Desktop events using the same handlers, including tap (click), long-press, drag, long-press-drag, pinch/mouse zoom. Used in commercial SPAs and featured in the best-selling book Single Page Web Applications - JavaScript end-to-end.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
48713
664