@@ -314,7 +314,7 @@ define([
314
314
ratio ,
315
315
dimentions = { } ;
316
316
317
- if ( allowZoomIn && ( ! transitionEnabled || ! transitionActive ) && ( isTouchEnabled ||
317
+ if ( allowZoomIn && ( ! transitionEnabled && ! transitionActive ) && ( isTouchEnabled ||
318
318
! $ ( zoomInButtonSelector ) . hasClass ( zoomInDisabled ) ) ) {
319
319
$image = $ ( fullscreenImageSelector ) ;
320
320
imgOriginalSize = getImageSize ( $image [ 0 ] ) ;
@@ -387,7 +387,7 @@ define([
387
387
ratio ,
388
388
fitIntoParent ;
389
389
390
- if ( allowZoomOut && ( ! transitionEnabled || ! transitionActive ) && ( isTouchEnabled ||
390
+ if ( allowZoomOut && ( ! transitionEnabled && ! transitionActive ) && ( isTouchEnabled ||
391
391
! $ ( zoomOutButtonSelector ) . hasClass ( zoomOutDisabled ) ) ) {
392
392
allowZoomIn = true ;
393
393
$image = $ ( fullscreenImageSelector ) ;
@@ -679,7 +679,7 @@ define([
679
679
if ( $image . hasClass ( imageDraggableClass ) ) {
680
680
$image . removeClass ( imageDraggableClass ) ;
681
681
}
682
- } else if ( gallery . fullScreen && ( ! transitionEnabled || ! transitionActive ) ) {
682
+ } else if ( gallery . fullScreen && ( ! transitionEnabled && ! transitionActive ) ) {
683
683
imagePosY = getTop ( $image ) ;
684
684
imagePosX = $image . offset ( ) . left ;
685
685
@@ -719,7 +719,7 @@ define([
719
719
var clientX ,
720
720
clientY ;
721
721
722
- if ( gallery . fullScreen && isDragActive && ( ! transitionEnabled || ! transitionActive ) ) {
722
+ if ( gallery . fullScreen && isDragActive && ( ! transitionEnabled && ! transitionActive ) ) {
723
723
724
724
if ( allowZoomOut && ! $image . hasClass ( imageDraggableClass ) ) {
725
725
$image . addClass ( imageDraggableClass ) ;
0 commit comments