File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 9797
9898 // Determine if touch events are supported.
9999 var touchSupported = ( "ontouchstart" in window ) // Most browsers
100- || ( "onmsgesturechange" in window ) ; // Mircosoft
100+ || ( "onmsgesturechange" in window ) ; // Microsoft
101101
102102 var taphold = $ . event . special . taphold =
103103 {
104104 setup : function ( data )
105105 {
106- $ ( this ) . bind ( ( touchSupported ? "touchstart" : "mousedown" ) , data , startHandler )
107- . bind ( ( touchSupported ? "touchend" : "mouseup" ) , stopHandler )
108- . bind ( ( touchSupported ? "touchmove" : "mouseleave" ) , leaveHandler ) ;
106+ $ ( this ) . bind ( ( touchSupported ? "touchstart" : "mousedown" ) , data , startHandler )
107+ . bind ( ( touchSupported ? "touchend" : "mouseup" ) , stopHandler )
108+ . bind ( ( touchSupported ? "touchmove touchcancel" : "mouseleave" ) , leaveHandler ) ;
109109 } ,
110110 teardown : function ( namespaces )
111111 {
112- $ ( this ) . unbind ( ( touchSupported ? "touchstart" : "mousedown" ) , startHandler )
113- . unbind ( ( touchSupported ? "touchend" : "mouseup" ) , stopHandler )
114- . unbind ( ( touchSupported ? "touchmove" : "mouseleave" ) , leaveHandler ) ;
112+ $ ( this ) . unbind ( ( touchSupported ? "touchstart" : "mousedown" ) , startHandler )
113+ . unbind ( ( touchSupported ? "touchend" : "mouseup" ) , stopHandler )
114+ . unbind ( ( touchSupported ? "touchmove touchcancel" : "mouseleave" ) , leaveHandler ) ;
115115 }
116116 } ;
117117} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments