Skip to content
Snippets Groups Projects
Commit c3b86434 authored by Volodymyr Zaets's avatar Volodymyr Zaets
Browse files

Merge remote-tracking branch 'origin/MAGETWO-44351' into PR

parents d3af3511 38a67125
Branches
No related merge requests found
......@@ -90,13 +90,15 @@ define([
this.initApi();
this.setupBreakpoints();
this.initFullscreenSettings();
this.settings.$element.on('click', '.fotorama__stage__frame', function () {
$('[data-gallery-role="gallery"]').data('fotorama').requestFullScreen();
$('[data-gallery-role="fotorama__fullscreen-icon"]').css({
opacity: 1,
visibility: 'visible',
display: 'block'
});
this.settings.$element.on('mouseup', '.fotorama__stage__frame', function () {
if (!$(this).parents('.fotorama__shadows--left').length) {
$('[data-gallery-role="gallery"]').data('fotorama').requestFullScreen();
$('[data-gallery-role="fotorama__fullscreen-icon"]').css({
opacity: 1,
visibility: 'visible',
display: 'block'
});
}
});
},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment