Disable navigation swipe on Chrome browser in javascript

This question already has an answer here:

  • Stop chrome back/forward two finger swipe

    5 answers

  • javascript large integer round because precision? (why?)
  • How do I find what Javascript is running on certain events?
  • Chrome DOM not updating for jQuery append/fadeIn
  • How to check if Chrome extension has fully installed
  • Chrome counts characters wrong in textarea with maxlength attribute
  • Reset a HTML5 “number” field containing text using AngularJS in Google Chrome
  • Visual Studio 2017 Chrome JavaScript Debuging - Not hitting break point
  • Play mp4 video via javascript
  • Browser Misreading Document.write()
  • What is the source of the double-dollar sign selector query function in Chrome/Firefox?
  • Google Chrome Javascript Debugger and Content Scripts
  • Trying to use Tagged template strings gives 'Uncaught SyntaxError: Unexpected token'
  • 2 Solutions collect form web for “Disable navigation swipe on Chrome browser in javascript”

    This behaviour is built into the java source of chrome (probably), which is why I think it won’t be possible to disable this behaviour with Javascript alone. Maybe you can distribute you app with phonegap, if this behaviour is necessary.

    Could you try using a combination of:

    • intercepting the browser Back function using window.onbeforeunload, as per this example, and
    • disabling navigation using the technique illustrated in this example?