Skip to content

Commit 347a265

Browse files
authored
[2.1.0] Problem on mobile when catalog gallery allowfullscreen is false #5808
1 parent 06dd04b commit 347a265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/gallery/gallery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ define([
143143
}
144144
});
145145

146-
if (this.isTouchEnabled) {
146+
if (this.isTouchEnabled && this.settings.isFullscreen) {
147147
this.settings.$element.on('tap', '.fotorama__stage__frame', function () {
148148
var translate = getTranslate($(this).parents('.fotorama__stage__shaft'));
149149

0 commit comments

Comments
 (0)