utubo / firefox-simple_gesture

🦊An add-on that adds simple touch gestures for Firfox for Android. Sorry, I only check issues sometimes.
https://addons.mozilla.org/ja/firefox/addon/simple-gesture/
Other
29 stars 1 forks source link

Hard to use on zoomed page #55

Closed byzod closed 4 years ago

byzod commented 5 years ago

The gesture size detection is relative to the page size, but not the screen space.

Thus if you zoom in the page, you need to draw bigger gesture to trigger it. If zoom in too near, it's impossible to trigger any gesture.

utubo commented 5 years ago

When zoom in the page, Firefox for Android returns wrong touch positoin and scroll position. (since FF 65?) Perhaps I will not be able to fix this. Plz wait firefox is fixed. Thx for your review.

utubo commented 5 years ago

test https://utb.sakura.ne.jp/samples/positions_test.html

utubo commented 5 years ago
Canvas
  Layout-Viewport (for zoom and smooth scroll.  I can't get this scroll position.)
    Visual-viewport (Javascript returns scorllX based on this.)
      documentElement
utubo commented 5 years ago

有力な情報 https://drafts.csswg.org/cssom-view/#dom-window-scrollx

utubo commented 5 years ago

At last, I can get the position of VisualViewport ! https://developer.mozilla.org/en-US/docs/Web/API/VisualViewport

Try update Simple-Gesture to 2.14.1, open about:config and set dom.visualviewport.enabled to true.

utubo commented 5 years ago