From 347a26542c4940626b95033312b3832d823533b9 Mon Sep 17 00:00:00 2001 From: Dennis van Schaik Date: Mon, 6 Feb 2017 13:07:31 +0100 Subject: [PATCH] [2.1.0] Problem on mobile when catalog gallery allowfullscreen is false #5808 --- lib/web/mage/gallery/gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/web/mage/gallery/gallery.js b/lib/web/mage/gallery/gallery.js index b3cc06fcc6a8f..c81f9a0444ea8 100644 --- a/lib/web/mage/gallery/gallery.js +++ b/lib/web/mage/gallery/gallery.js @@ -143,7 +143,7 @@ define([ } }); - if (this.isTouchEnabled) { + if (this.isTouchEnabled && this.settings.isFullscreen) { this.settings.$element.on('tap', '.fotorama__stage__frame', function () { var translate = getTranslate($(this).parents('.fotorama__stage__shaft'));