-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Pinching is not working in iPad and mobile devices #373
Comments
now new version me too not working but demo page js working... try it good luck change panzoom version // panzoom.js this is work (demo for js : http://timmywil.github.io/jquery.panzoom/demo/)
(function(global, factory) {
})); |
I tried with new version already but the problem is same, its not working in ipad and mobile devices. |
Same problem here with android devices. |
Same issue here with v3.2.2 on android 7 and 8. |
There is an older ticket with this solution The problem is, one only wants to disable "which" for mobile devices, not for "mouse pushers". So I think (hope) the way below works. Happy if anyone could confirm it. So far I think it works well with Chrome/Firefox mobile and with desktops. I'll test it with a Win 10 infoscreen (Chrome) on monday. var $panzoom = $("#element").panzoom({
which: -1
// other settings
});
// Add onetime event listener, that just changes "which" if a mouse is detected
window.addEventListener('mousemove', function() {
$("#element").panzoom("option", "which", 1);
}, {once: true});
/*
// Other way around; but this requires on simple touch before doing any pinching
// This "might" be the better solution a problem with Win8/10 and touchscreens?
window.addEventListener('touchstart', function() {
$("#element").panzoom("option", "which", -1);
}, {once: true});
*/
``` |
Pinching is not working in iPad and mobile devices
Version:
Panzoom js - jquery.panzoom.js v3.2.2
jQuery - 3.3.1
Check the link:
https://prem-thinkdesign.github.io/medical-mdm/medical_codes_er.html
In iPad (ios devices) Dragging and pinch to zoom in and zoom out is not working.
In mobile devices (android devices) dragging is working but pinch to zoom in and zoom out is not working.
The text was updated successfully, but these errors were encountered: