File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ $.event.special.pointerdown = {
134
134
$ ( this ) . off ( eventMap [ currentEventType ] . pointerdown , $ . event . special . pointerdown . handler ) ;
135
135
} ,
136
136
handler : function ( event ) {
137
- if ( currentEventType === "touch" ) {
137
+ if ( event . type . indexOf ( "touch" ) !== - 1 ) {
138
138
// Trigger pointerover for devices that don't support hover
139
139
checkHoverSupport ( event , "pointerover" ) ;
140
140
}
@@ -151,7 +151,7 @@ $.event.special.pointerup = {
151
151
} ,
152
152
handler : function ( event ) {
153
153
$ ( event . target ) . trigger ( processEvent ( event , "pointerup" ) ) ;
154
- if ( currentEventType === "touch" ) {
154
+ if ( event . type . indexOf ( "touch" ) !== - 1 ) {
155
155
// Trigger pointerout for devices that don't support hover
156
156
checkHoverSupport ( event , "pointerout" ) ;
157
157
}
You can’t perform that action at this time.
0 commit comments