@@ -1220,22 +1220,6 @@ fotoramaVersion = '4.6.4';
1220
1220
stopPropagation && e . stopPropagation && e . stopPropagation ( ) ;
1221
1221
}
1222
1222
1223
- function stubEvent ( $el , eventType ) {
1224
- var isIOS = / i p ( a d | h o n e | o d ) / i. test ( window . navigator . userAgent ) ;
1225
-
1226
- if ( isIOS && eventType === 'touchend' ) {
1227
- $el . on ( 'touchend' , function ( e ) {
1228
- $DOCUMENT . trigger ( 'mouseup' , e ) ;
1229
- } )
1230
- }
1231
-
1232
- $el . on ( eventType , function ( e ) {
1233
- stopEvent ( e , true ) ;
1234
-
1235
- return false ;
1236
- } ) ;
1237
- }
1238
-
1239
1223
function getDirectionSign ( forward ) {
1240
1224
return forward ? '>' : '<' ;
1241
1225
}
@@ -1538,10 +1522,10 @@ fotoramaVersion = '4.6.4';
1538
1522
1539
1523
$WINDOW . on ( 'scroll' , onOtherEnd ) ;
1540
1524
1541
- $el . on ( 'mousedown pointerdown ' , onStart ) ;
1525
+ $el . on ( 'mousedown' , onStart ) ;
1542
1526
$DOCUMENT
1543
- . on ( 'mousemove pointermove ' , onMove )
1544
- . on ( 'mouseup pointerup ' , onEnd ) ;
1527
+ . on ( 'mousemove' , onMove )
1528
+ . on ( 'mouseup' , onEnd ) ;
1545
1529
}
1546
1530
if ( Modernizr . touch ) {
1547
1531
dragDomEl = 'a' ;
@@ -2183,11 +2167,6 @@ fotoramaVersion = '4.6.4';
2183
2167
if ( o_allowFullScreen ) {
2184
2168
$fullscreenIcon . prependTo ( $stage ) ;
2185
2169
o_nativeFullScreen = FULLSCREEN && o_allowFullScreen === 'native' ;
2186
-
2187
- // Due 300ms click delay on mobile devices
2188
- // we stub touchend and fallback to click.
2189
- // MAGETWO-69567
2190
- stubEvent ( $fullscreenIcon , 'touchend' ) ;
2191
2170
} else {
2192
2171
$fullscreenIcon . detach ( ) ;
2193
2172
o_nativeFullScreen = false ;
0 commit comments