File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1217,6 +1217,14 @@ fotoramaVersion = '4.6.4';
1217
1217
stopPropagation && e . stopPropagation && e . stopPropagation ( ) ;
1218
1218
}
1219
1219
1220
+ function stubEvent ( $el , eventType ) {
1221
+ $el . on ( eventType , function ( e ) {
1222
+ stopEvent ( e , true ) ;
1223
+
1224
+ return false ;
1225
+ } ) ;
1226
+ }
1227
+
1220
1228
function getDirectionSign ( forward ) {
1221
1229
return forward ? '>' : '<' ;
1222
1230
}
@@ -2150,6 +2158,11 @@ fotoramaVersion = '4.6.4';
2150
2158
if ( o_allowFullScreen ) {
2151
2159
$fullscreenIcon . prependTo ( $stage ) ;
2152
2160
o_nativeFullScreen = FULLSCREEN && o_allowFullScreen === 'native' ;
2161
+
2162
+ // Due 300ms click delay on mobile devices
2163
+ // we stub touchend and fallback to click.
2164
+ // MAGETWO-69567
2165
+ stubEvent ( $fullscreenIcon , 'touchend' ) ;
2153
2166
} else {
2154
2167
$fullscreenIcon . detach ( ) ;
2155
2168
o_nativeFullScreen = false ;
You can’t perform that action at this time.
0 commit comments