Skip to content

Commit fa5cb0c

Browse files
committed
Merge pull request #64 from AnastasiaBuniakEPAM/JS-328
JS-328: Drag/swipe of vertical thumbnails stopped working on mobile devices
2 parents 1648394 + 8994078 commit fa5cb0c

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
@@ -1433,14 +1433,8 @@ fotoramaVersion = '4.6.4';
14331433
xWin = (tail.go || tail.x || xyDiff >= 0) && !tail.noSwipe,
14341434
yWin = xyDiff < 0;
14351435

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-
}
1436+
stopEvent(e);
1437+
(options.onMove || noop).call(el, e, {touch: touchFLAG});
14441438

14451439
if (!moved && Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)) > tolerance) {
14461440
moved = true;
@@ -1481,16 +1475,12 @@ fotoramaVersion = '4.6.4';
14811475

14821476
function onOtherStart() {
14831477
if (tail.flow) return;
1484-
setTimeout(function () {
1485-
tail.flow = true;
1486-
}, 10);
1478+
tail.flow = true;
14871479
}
14881480

14891481
function onOtherEnd() {
14901482
if (!tail.flow) return;
1491-
setTimeout(function () {
1492-
tail.flow = false;
1493-
}, TOUCH_TIMEOUT);
1483+
tail.flow = false;
14941484
}
14951485

14961486
if (MS_POINTER) {

0 commit comments

Comments
 (0)