Skip to content

Commit

Permalink
[PATCH] Fix gallery event observer
Browse files Browse the repository at this point in the history
  • Loading branch information
Den4ik committed Apr 9, 2019
1 parent 33f35ce commit 66bacdb
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 @@ -141,7 +141,7 @@ define([
this.setupBreakpoints();
this.initFullscreenSettings();

this.settings.$element.on('mousedown', '.fotorama__stage__frame', function () {
this.settings.$element.on('click', '.fotorama__stage__frame', function () {
if (
!$(this).parents('.fotorama__shadows--left, .fotorama__shadows--right').length &&
!$(this).hasClass('fotorama-video-container')
Expand Down

0 comments on commit 66bacdb

Please sign in to comment.