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
Pinch zoom broken in Chrome v55.02883.91 on Mobile #303
Comments
Thanks to report this issue. In one moment my app stop working on zoom and i don't know why. |
My app broke too. Weird behavior on newly updated chrome (drag events seem to scroll the window and pinch events are... bizarre). Other device with non-updated chrome working fine. Updated chrome last night and it broke too. |
Thanks for opening this issue. |
Solution - add It's a new thing: https://developers.google.com/web/updates/2016/10/pointer-events |
It's a new thing: https://developers.google.com/web/updates/2016/10/pointer-events Not working. |
Had a quick hack in the code and commenting out line 1164:
|
Thank you, works for me! |
Womp there it is..... This 'hack' does the trick! Now works on android 55 Re-tested on iOS 10.2, Android 53 - still working as before! Thanks vrtual! |
Works fine for me... thanks man Tested on android google webview 2016 dec 14 update... |
2. panzoom was broken by WebView v55.02883.91 - timmywil#303 Fixed it as per one of the comments in above page.
This works partially. Thanks! |
I've got partial success on commenting out that line, it now zooms from the top-left instead of the interaction location, but that's a huge improvement. |
It appears the latest chrome has changed where the pageX and pageY reference sits in the Event. I'm part way through going over the panzoom code. To get it working on chrome using mouse events change these lines: More to come for the touch events as I go through it. |
Commenting out "this.panning = true;" fixes it but it is not that smooth that way anymore and on older devices the zooming becomes quite laggy. I assume commenting it out uses much more CPU power and thus older devices cannot keep up. |
Have you tried updating to new version (3.2.2) and comment out the line given? |
I can confirm that this bug still exists (and that the fix works) in v3.2.2 and Chrome 56. I'm not 100% sure, but here's what I think the problem is: Alternate fix: I've found that adding |
thanks @JamesCatt will try your alternative. @timmywil !? |
@JamesCatt the alternative fix did not work for me and zoom was broken again (reported by a user since i do not have a device to test myself). |
Commenting line 1164(this.panning = true) is not working for me. I cheated in line 1143 that change moveEvent = 'pointermove' tomoveEvent = 'touchmove', then it works, I am not sure if it will cause any other problems. |
- fixed Chrome 55+ mobile pich/touch flickering bug timmywil#303 - fixed Chrome passive event warning timmywil#328 - add new otion "pan sensitivity"
fix double events pointer/touch on Chrome >=55 timmywil#303 Unable to preventDefault inside passive event listener due to target being treated as passive. timmywil#328
I have found a hack solving this problem. We should set $("a.panzoom-elements").panzoom({
which: -1,
}); WARNING |
@JamesCatt's alternative did not work for me. @hshiozawa's hack does, at least on a Pixel, running Android 7.1.2 |
Subject of the issue
Pinch zoom broken in Chrome v55.02883.91 on Mobile and Android System WebView v55.02883.91
This applies to android mobile devices using Chrome (browser) and Cordova apps using Android System WebView.
Your environment
Steps to reproduce
Expected behaviour
On previous version of Chrome (right up until v54, worked perfectly, i.e. zoomed in!
Actual behaviour
What happens on v55 is all you get is the pan, not the zoom and the panned image sometimes 'jumps' between pinch fingers and creates a flashing effect as the image is flipped between your two fingers.
The text was updated successfully, but these errors were encountered: