File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
app/code/Magento/ProductVideo/view/frontend/web/js Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ define([
506
506
var self = this ;
507
507
508
508
$image . find ( '.magnify-lens' ) . remove ( ) ;
509
- $image . on ( 'click' , function ( ) {
509
+ $image . on ( 'click tap ' , function ( ) {
510
510
if ( $ ( this ) . hasClass ( 'video-unplayed' ) && $ ( this ) . find ( 'iframe' ) . length === 0 ) {
511
511
$ ( '.fotorama__arr--next' ) . hide ( ) ;
512
512
$ ( '.fotorama__arr--prev' ) . hide ( ) ;
Original file line number Diff line number Diff line change 488
488
} else {
489
489
var top = options . top + 'px' ;
490
490
}
491
- largeWrapper [ 0 ] . style . top = top . replace ( "%px" , "%" ) ;
491
+
492
+ if ( largeWrapper . length ) {
493
+ largeWrapper [ 0 ] . style . top = top . replace ( "%px" , "%" ) ;
494
+ }
492
495
}
493
496
if ( options . left ) {
494
497
if ( typeof options . left == 'function' ) {
495
498
var left = options . left ( ) + 'px' ;
496
499
} else {
497
500
var left = options . left + 'px' ;
498
501
}
499
- largeWrapper [ 0 ] . style . left = left . replace ( "%px" , "%" ) ;
502
+
503
+ if ( largeWrapper . length ) {
504
+ largeWrapper [ 0 ] . style . left = left . replace ( "%px" , "%" ) ;
505
+ }
500
506
}
501
507
502
508
data [ idx ] = {
You can’t perform that action at this time.
0 commit comments