Skip to content

Commit 2503c9c

Browse files
ENGCOM-4565: [Backport] Fix gallery full-screen triggers #21918
- Merge Pull Request #21918 from iGerchak/magento2:Fix-gallery-target - Merged commits: 1. 6c8502e
2 parents d1190ce + 6c8502e commit 2503c9c

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
@@ -141,7 +141,7 @@ define([
141141
this.setupBreakpoints();
142142
this.initFullscreenSettings();
143143

144-
this.settings.$element.on('mouseup', '.fotorama__stage__frame', function () {
144+
this.settings.$element.on('mousedown', '.fotorama__stage__frame', function () {
145145
if (
146146
!$(this).parents('.fotorama__shadows--left, .fotorama__shadows--right').length &&
147147
!$(this).hasClass('fotorama-video-container')

0 commit comments

Comments
 (0)