Y
Hacker News
new
|
ask
|
show
|
jobs
by
john-doe
1346 days ago
Related: you can use `overscroll-behavior` to prevent the browser gestures to go back/forward in history:
https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-...
1 comments
ryes
1346 days ago
Thank you for point that out! That could be helpful. Do you think I should implement that? Right now I still use the browser gestures too. I'm just getting better swiping inside vs swiping on the screen edge I guess...
link
john-doe
1346 days ago
Something like `overscroll-behavior-x: contain;` for the scrolling container?
link
john-doe
1345 days ago
In your case, for the `main` element. Note that I was referring to desktop browsers gestures (Chromium), but that might help with mobile ones as well.
link
ryes
1345 days ago
Ok I added that. Please try it now and let me know if that works better for you now.
link
john-doe
1345 days ago
Perfect!
link