Find your content:

Search form

You are here

swipe back disable ios safari javascript

 
Share

I have used the below approach to fix the issue in iOS safari browser.

CSS only fix for Chrome/Firefox

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

 

JavaScript fix for Safari

if (window.safari) {
    history.pushState(null, null, location.href);
    window.onpopstate = function(event) {
        history.go(1);
    };
}

My Block Status

My Block Content