-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mouse panning breaks zoom on Android (panMode: "mousemove") #653
Comments
Hi, First of all, you actually were not supposed to set |
Ok thanks! Is there a way to disable |
You simply set options based on your conditions, for example: if (YOUR_CONDITION) {
Fancybox.bind('[data-fancybox]', {
// Options
});
} else {
Fancybox.bind('[data-fancybox]', {
// Other options
});
} |
Ok, can do. Is it expected to have to go through and enable or disable various features based on screen size/device? |
Sorry, I do not understand the question. What do you have in mind? btw, another trick is to pass a method as an option, example: Fancybox.bind('[data-fancybox]', {
compact: false,
contentClick: () => {
return window.innerWidth > 500 ? "toggleMax" : "toggleCover";
}
}); |
Ok thanks. My question is basically based on your first response, is the expectation for me to turn off Like should it be checking itself with something like |
To be honest, the script just binds |
Haha, yeah. I probably would have guessed the same. Well, thanks for taking a look. Let me know if you find a fix for why it is treating Android differently 👍🏻 |
@fancyapps @zackpyle |
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:
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
Commenting out these 3 lines fixes it:
The text was updated successfully, but these errors were encountered: