We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6a3bf commit fe505cdCopy full SHA for fe505cd
src/plugins/zoom/lg-zoom.ts
@@ -516,11 +516,16 @@ export default class Zoom {
516
}
517
});
518
519
- // Update zoom on resize and orientationchange
520
this.core.LGel.on(
521
`${lGEvents.containerResize}.zoom ${lGEvents.rotateRight}.zoom ${lGEvents.rotateLeft}.zoom ${lGEvents.flipHorizontal}.zoom ${lGEvents.flipVertical}.zoom`,
522
() => {
523
- if (!this.core.lgOpened || !this.isImageSlide()) return;
+ if (
+ !this.core.lgOpened ||
524
+ !this.isImageSlide() ||
525
+ this.core.touchAction
526
+ ) {
527
+ return;
528
+ }
529
const _LGel = this.core
530
.getSlideItem(this.core.index)
531
.find('.lg-img-wrap')
0 commit comments