File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,8 @@ define([
28
28
if ( has ( "mspointer-events" ) ) {
29
29
mspointer . registerHandlers ( targetElement ) ;
30
30
} else {
31
- if ( has ( "touch-events" ) ) {
32
- if ( ! has ( "touch-device" ) ) {
33
- mouse . registerHandlers ( targetElement ) ;
34
- if ( has ( "chrome" ) ) {
35
- touch . registerHandlers ( targetElement ) ;
36
- }
37
- } else {
38
- touch . registerHandlers ( targetElement ) ;
39
- }
31
+ if ( has ( "touch-events" ) && has ( "touch-device" ) ) {
32
+ touch . registerHandlers ( targetElement ) ;
40
33
} else {
41
34
mouse . registerHandlers ( targetElement ) ;
42
35
}
Original file line number Diff line number Diff line change 7
7
has . add ( "touch-events" , "ontouchstart" in document ) ; // UA supports Touch Events
8
8
has . add ( "pointer-events" , "onpointerdown" in document ) ; // UA supports Pointer Events
9
9
has . add ( "mspointer-events" , "onmspointerdown" in document ) ; // UA supports Pointer Events (IE10+IE11 preview)
10
- has . add ( "chrome" , / c h r o m e / i. test ( navigator . userAgent ) ) ; // UA is chrome.
11
10
has . add ( "touch-device" , / ( m o b i l e ) | ( a n d r o i d ) / i. test ( navigator . userAgent ) ) ; // mobile device
12
11
has . add ( "css-touch-action" , "touchAction" in document . body . style ) ; // touch-action CSS
13
12
has . add ( "css-ms-touch-action" , "msTouchAction" in document . body . style ) ; // -ms-touch-action CSS
You can’t perform that action at this time.
0 commit comments