Skip to content

Commit b605058

Browse files
MAGETWO-55608: [GITHUB] M2.1: Not scrollable picture on mobile / product page #5302
1 parent ba948d2 commit b605058

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

lib/web/fotorama/fotorama.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,8 +1433,14 @@ fotoramaVersion = '4.6.4';
14331433
xWin = (tail.go || tail.x || xyDiff >= 0) && !tail.noSwipe,
14341434
yWin = xyDiff < 0;
14351435

1436-
stopEvent(e);
1437-
(options.onMove || noop).call(el, e, {touch: touchFLAG});
1436+
if (touchFLAG && !tail.checked) {
1437+
if (touchEnabledFLAG = xWin) {
1438+
stopEvent(e);
1439+
}
1440+
} else {
1441+
stopEvent(e);
1442+
(options.onMove || noop).call(el, e, {touch: touchFLAG});
1443+
}
14381444

14391445
if (!moved && Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)) > tolerance) {
14401446
moved = true;

0 commit comments

Comments
 (0)