Safari, single-page app and page-to-page OS X option

I have a one-page application with internal content that can scroll (I use the iScroll library). It works well everywhere, except for one case: OS X Safari with the "Swipe between pages" option enabled.

In OS X Safari, when I make a 2-finger gesture, the whole application pans left / right and shows the page that was before / after the current application in the navigation history.

Is there any way to deal with this behavior using client-side JavaScript?

Thanks in advance.

+4
source share
1 answer

use the default prevention inside the event handler.

-1
source

Source: https://habr.com/ru/post/1389344/


All Articles