We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd151d5 commit 166a8bbCopy full SHA for 166a8bb
lib/web/fotorama/fotorama.js
@@ -1447,10 +1447,12 @@ fotoramaVersion = '4.6.4';
1447
}
1448
} else {
1449
stopEvent(e);
1450
- (options.onMove || noop).call(el, e, {touch: touchFLAG});
+ if (xDiff > yDiff) {
1451
+ (options.onMove || noop).call(el, e, {touch: touchFLAG});
1452
+ }
1453
1454
- if (!moved && Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)) > tolerance) {
1455
+ if (!moved && xDiff > yDiff && Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)) > tolerance) {
1456
moved = true;
1457
1458
0 commit comments