Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Chrome two fingers back/forward swipe

I have a page where the user can scroll horizontally the content, and in Chrome this scroll action sometimes triggers the two fingers back/forward swipe.

How can I deactivate this Chrome's function in a specific page, without disabling horizontal scroll?

like image 676
raulmarcosl Avatar asked Jul 04 '13 16:07

raulmarcosl


People also ask

How do I turn swipe back to Chrome?

Open up Chrome for Android and type “chrome://flags” in the address bar at the top. Once in the flags area, type “history nav” in the search bar. When you see the “History navigation with gesture” option, tap the box where it says “Default.” Tap on the “Enable” option.


2 Answers

After way too long, I discovered this:

html, body {
  overscroll-behavior-x: none;
}
like image 129
tbjgolden Avatar answered Oct 05 '22 10:10

tbjgolden


I have found that this chrome setting disabled the behavior: chrome://flags/#overscroll-history-navigation

Just disable overscroll, it will disable the page navigation using the scroll but normal horizontal scroll on the page will work. Tested on my end.

like image 30
Satyam Naolekar Avatar answered Oct 05 '22 10:10

Satyam Naolekar