Skip to content

Commit d50c512

Browse files
committed
MAGETWO-85708: Zoom the image can't be closed by iPhone with Safari browser
1 parent 5790c16 commit d50c512

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

lib/web/fotorama/fotorama.js

+8
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,14 @@ fotoramaVersion = '4.6.4';
12181218
}
12191219

12201220
function stubEvent($el, eventType) {
1221+
var isIOS = /iP(ad|hone|od)/i.test(window.navigator.userAgent);
1222+
1223+
if (isIOS && eventType === 'touchend') {
1224+
$el.on('touchend', function(e){
1225+
$DOCUMENT.trigger('mouseup', e);
1226+
})
1227+
}
1228+
12211229
$el.on(eventType, function (e) {
12221230
stopEvent(e, true);
12231231

0 commit comments

Comments
 (0)