bitbof / klecks

Community funded painting tool powering Kleki.com
https://klecks.org
MIT License
220 stars 69 forks source link

Browser back occurs with pen gesture #18

Closed satopian closed 2 years ago

satopian commented 2 years ago

220401_ペンジェスチャー

When I open the "edit" menu and move the pen from left to right, it returns to the previous screen. This only happened in the latest version, not in a slightly older version.

bitbof commented 2 years ago

Great catch, I'll have a look!

bitbof commented 2 years ago

fixed in https://github.com/bitbof/klecks/commit/bcce396267a7ff8cd50835894e8241dc5ce9c61d

bitbof commented 2 years ago

if you use a touch pad with 2 fingers you can still do the back gesture despite it being set to ´touch-gesture: pan-y´ :(

satopian commented 2 years ago

I'm not sure if this is appropriate, but it's a code I often use to prevent browser backs. <style>body{overscroll-behavior-x: none !important; }</style>

bitbof commented 2 years ago

Thx! I stumbled over it too just now. Safari ignores it unfortunately. It might be unavoidable there unless all scroll events are manually processed. I'll use it! 👍