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 97
97
98
98
// Determine if touch events are supported.
99
99
var touchSupported = ( "ontouchstart" in window ) // Most browsers
100
- || ( "onmsgesturechange" in window ) ; // Mircosoft
100
+ || ( "onmsgesturechange" in window ) ; // Microsoft
101
101
102
102
var taphold = $ . event . special . taphold =
103
103
{
104
104
setup : function ( data )
105
105
{
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 ) ;
109
109
} ,
110
110
teardown : function ( namespaces )
111
111
{
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 ) ;
115
115
}
116
116
} ;
117
117
} ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments