haxiomic / firefox-multi-touch-zoom

Smoothly zoom in and out with the multi-touch pinch gesture
MIT License
153 stars 15 forks source link

Touchscreen zoom is not working as expected when the touch points are located inside an iframe #18

Open hdd1013 opened 6 years ago

hdd1013 commented 6 years ago

Pinch zoom is not responding as expected and does the reflow zoom when any of the touch points are located inside an iframe when the zoom event is triggered.

haxiomic commented 6 years ago

Thanks for reporting @hdd1013, confirmed it's the same for me on trackpad. I guess the iframe capturing the mouse events and preventing them from being propagated to the parent document

It can be resolved by adding listeners to the iframe and manually passing those to the parent document. I suspect there might be a cleaner work around however

kaixxx commented 6 years ago

...came here to report the same issue (windows tablet). (Still a great addon, thank you!)

PatrickGuthridge commented 6 years ago

I have this issue as well.