You cannot disable it directly, but the native swipe back only happens if there is something in the browser history.
It will not work in every case, but if you have a one-page web application opened in a new tab, you can prevent it from being added to the history using
window.history.replaceState(null, null, "#" + url)
instead of pushState or
document.location.hash = url
Tom Clarkson Apr 19 '14 at 4:46 april 2014-04-19 04:46
source share