near-everything / canvas

https://draw.everything.dev
The Unlicense
10 stars 4 forks source link

Scroll left or right should not browser navigate #11

Closed elliotBraem closed 2 months ago

elliotBraem commented 5 months ago

If I open a new canvas and try to scroll left, it will catch the browser window and attempt to navigate "back" or "forward" in page history.

Scrolling in any direction of the canvas should be fluid, open a new canvas on tldraw.com for reference.

tldraw has a great code base for reference: https://github.com/tldraw/tldraw This solution must exist in their docs, examples, app, or can be asked in Discord

elliotBraem commented 5 months ago

Was partially resolved after adding : overscroll-behavior: none; touch-action: none;, but it seems the issue persists after zooming in