app-examples icon indicating copy to clipboard operation
app-examples copied to clipboard

Disable overscroll history navigation in Safari with JavaScript or CSS

Open Lhasa23 opened this issue 2 years ago • 0 comments

First of all, I'm sorry to bother you by asking this question and no matter the result is, I will really appreciate it.

In MacOS, I can use the touchpad two-fingers swipe to forward / backward the browser history navigation. I can prevent this event in Chrome by using below codes:

html, body {
  overscroll-behavior-x: none;
}

But it can't work in Safari, I noticed Miro drawing page prevents this event in Safari. I really wonder how to do it. Thank you a lot anyway. :)

Lhasa23 avatar Apr 21 '23 10:04 Lhasa23