Skip to content

Commit 8994078

Browse files
JS-328: Drag/swipe of vertical thumbnails stopped working on mobile devices
1 parent bb8f918 commit 8994078

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

lib/web/fotorama/fotorama.js

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,14 +1428,8 @@ fotoramaVersion = '4.6.4';
14281428
xWin = (tail.go || tail.x || xyDiff >= 0) && !tail.noSwipe,
14291429
yWin = xyDiff < 0;
14301430

1431-
if (touchFLAG && !tail.checked) {
1432-
if (touchEnabledFLAG = xWin) {
1433-
stopEvent(e);
1434-
}
1435-
} else {
1436-
stopEvent(e);
1437-
(options.onMove || noop).call(el, e, {touch: touchFLAG});
1438-
}
1431+
stopEvent(e);
1432+
(options.onMove || noop).call(el, e, {touch: touchFLAG});
14391433

14401434
if (!moved && Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)) > tolerance) {
14411435
moved = true;
@@ -1476,16 +1470,12 @@ fotoramaVersion = '4.6.4';
14761470

14771471
function onOtherStart() {
14781472
if (tail.flow) return;
1479-
setTimeout(function () {
1480-
tail.flow = true;
1481-
}, 10);
1473+
tail.flow = true;
14821474
}
14831475

14841476
function onOtherEnd() {
14851477
if (!tail.flow) return;
1486-
setTimeout(function () {
1487-
tail.flow = false;
1488-
}, TOUCH_TIMEOUT);
1478+
tail.flow = false;
14891479
}
14901480

14911481
if (MS_POINTER) {

0 commit comments

Comments
 (0)