Skip to content

Commit

Permalink
MAGETWO-55608: [GITHUB] M2.1: Not scrollable picture on mobile / prod…
Browse files Browse the repository at this point in the history
…uct page #5302
  • Loading branch information
omiroshnichenko committed Sep 15, 2016
1 parent ba948d2 commit b605058
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions lib/web/fotorama/fotorama.js
Original file line number Diff line number Diff line change
Expand Up @@ -1433,8 +1433,14 @@ fotoramaVersion = '4.6.4';
xWin = (tail.go || tail.x || xyDiff >= 0) && !tail.noSwipe,
yWin = xyDiff < 0;

stopEvent(e);
(options.onMove || noop).call(el, e, {touch: touchFLAG});
if (touchFLAG && !tail.checked) {
if (touchEnabledFLAG = xWin) {
stopEvent(e);
}
} else {
stopEvent(e);
(options.onMove || noop).call(el, e, {touch: touchFLAG});
}

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

0 comments on commit b605058

Please sign in to comment.