haxiomic / firefox-multi-touch-zoom

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

Google docs wrong cursor position when zoomed in #42

Open diminDDL opened 4 years ago

diminDDL commented 4 years ago

In google docs if you zoom in on text and try to click to edit or highlight the recorded position on the document is different from the real one. ezgif-3-625e065f1082

haxiomic commented 4 years ago

Hey @dimonDDL, in the most recent versions of Firefox native pinch zoom has been added behind a flag :). So this plugin will be retiring in the near future

To try it out, first disable my plugin, then go to about:config in the URL set apz.allow_zooming to true

Let me know if that works better for google docs or not

diminDDL commented 4 years ago

It works better but it is far less smooth in zooming than your plugin.

haxiomic commented 4 years ago

Ahh that's annoying, hopefully it'll get better in the near future (it's technically a not released feature yet). I've not tried windows but on mac the new built-in zooming seems to run a little better than the plugin

The Google Doc bug happens because this plugin is limited to applying transformations via CSS. Google Docs doesn't account for the CSS scale when doing the mouse click, but unfortunately I'm not sure there's a way to uniformly scale in a way that Docs will handle correctly :/