Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overscroll Navigation Flag not working on Chome command line

I am trying to execute chrome as

chrome.exe --overscroll-history-navigation=0 --disable-pinch

with the --disable-pinch --overscroll-history-navigation=0 flags in command line but it does not work at all.

I am using Chrome Versión 73.0.3683.75. It does not forbid the overscroll gestures.... I am about to go crazy....:|, it worked perfectly but stopped working at some point last week.

Any help is sooo welcome. Thanks!

like image 692
ÁngelBlanco Avatar asked Mar 13 '19 14:03

ÁngelBlanco


1 Answers

I have also been battling this one but have finally found the solution that works for me. It seems that since a couple of chrome versions back the overscroll-history-navigation flag has been removed from the command line options. However, you can still access it from the chrome flags page by visiting this url in chrome:

    chrome://flags/#overscroll-history-navigation

and manually disable it there.

Unfortunately this didn't solve it for me as I am also running the --kiosk mode switch for a touchscreen kiosk application developed in HTML and I cant expect every user to go to the flags page to disable this.

What did work was to add the css overscroll-behavior tag to both the html and body tags in the css for the application:

    html,body {overscroll-behavior: none;}

Problem solved! No annoying swiping navigation on chrome. Not sure why if the --kiosk switch is enabled this sort of behaviour isn't automatically switched off?

Anyhow, hope this helps you too.

like image 111
riliggs Avatar answered Oct 17 '22 02:10

riliggs