File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,15 @@ define([
90
90
this . initApi ( ) ;
91
91
this . setupBreakpoints ( ) ;
92
92
this . initFullscreenSettings ( ) ;
93
- this . settings . $element . on ( 'click' , '.fotorama__stage__frame' , function ( ) {
94
- $ ( '[data-gallery-role="gallery"]' ) . data ( 'fotorama' ) . requestFullScreen ( ) ;
95
- $ ( '[data-gallery-role="fotorama__fullscreen-icon"]' ) . css ( {
96
- opacity : 1 ,
97
- visibility : 'visible' ,
98
- display : 'block'
99
- } ) ;
93
+ this . settings . $element . on ( 'mouseup' , '.fotorama__stage__frame' , function ( ) {
94
+ if ( ! $ ( this ) . parents ( '.fotorama__shadows--left' ) . length ) {
95
+ $ ( '[data-gallery-role="gallery"]' ) . data ( 'fotorama' ) . requestFullScreen ( ) ;
96
+ $ ( '[data-gallery-role="fotorama__fullscreen-icon"]' ) . css ( {
97
+ opacity : 1 ,
98
+ visibility : 'visible' ,
99
+ display : 'block'
100
+ } ) ;
101
+ }
100
102
} ) ;
101
103
} ,
102
104
You can’t perform that action at this time.
0 commit comments