Skip to content

Commit

Permalink
Backport of MAGETWO-64250 for Magento 2.1: Problem on mobile when cat…
Browse files Browse the repository at this point in the history
…alog gallery allowfullscreen is false
  • Loading branch information
simpleadm committed Mar 14, 2018
1 parent e719669 commit ab695e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web/mage/gallery/gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down

0 comments on commit ab695e0

Please sign in to comment.