Skip to content

Commit 3e57f87

Browse files
committed
Fix gallery thumbs navigation scrolling
1 parent c7ca62e commit 3e57f87

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

lib/web/fotorama/fotorama.js

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,22 +1220,6 @@ fotoramaVersion = '4.6.4';
12201220
stopPropagation && e.stopPropagation && e.stopPropagation();
12211221
}
12221222

1223-
function stubEvent($el, eventType) {
1224-
var isIOS = /ip(ad|hone|od)/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-
12391223
function getDirectionSign(forward) {
12401224
return forward ? '>' : '<';
12411225
}
@@ -1538,10 +1522,10 @@ fotoramaVersion = '4.6.4';
15381522

15391523
$WINDOW.on('scroll', onOtherEnd);
15401524

1541-
$el.on('mousedown pointerdown', onStart);
1525+
$el.on('mousedown', onStart);
15421526
$DOCUMENT
1543-
.on('mousemove pointermove', onMove)
1544-
.on('mouseup pointerup', onEnd);
1527+
.on('mousemove', onMove)
1528+
.on('mouseup', onEnd);
15451529
}
15461530
if (Modernizr.touch) {
15471531
dragDomEl = 'a';
@@ -2183,11 +2167,6 @@ fotoramaVersion = '4.6.4';
21832167
if (o_allowFullScreen) {
21842168
$fullscreenIcon.prependTo($stage);
21852169
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');
21912170
} else {
21922171
$fullscreenIcon.detach();
21932172
o_nativeFullScreen = false;

0 commit comments

Comments
 (0)