-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers
Description
Describe the bug
When you enable mouse panning, it seems to break Android zooming. After you pinch to zoom in, you can't pinch to zoom our or back in or pan. It freezes. The toolbar buttons work, and you can exit, or move to the next gallery image. But once you pinch to zoom, and then let go, it stops working on that image.
Reproduction
Using Android Chrome:
- Tap the image to open fancybox
- Use fingers to pinch to zoom in
- Release fingers
- You can no longer use fingers to zoom, or to drag the enlarged image, you can only use the toolbar buttons
Note - Works as intended on iphone
Tested on a real Android phone (Galaxy A54) and in Browserstack (Galaxy S23 set using "real device" not emulation)
Additional context
Fancybox.bind('[data-fancybox="gallery"]', {
loop: true,
contentClick: "toggleMax",
Images: {
Panzoom: {
maxScale: 2,
panMode: "mousemove",
mouseMoveFactor: 1.1,
mouseMoveFriction: 0.12,
}
}
});
Commenting out these 3 lines fixes it:
// panMode: "mousemove",
// mouseMoveFactor: 1.1,
// mouseMoveFriction: 0.12,
Metadata
Metadata
Assignees
Labels
needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers