Any way to prevent horizontal scrolling triggering swipe back gesture on OS X Lion Safari?

后端 未结 8 1948
南笙
南笙 2021-01-30 04:09

I am working on a UI that uses horizontal scrolling in a div element (using overflow: scroll). I cannot scroll to the left, because it would start the

8条回答
  •  广开言路
    2021-01-30 04:48

    I've been looking for a solution for days. What I have so far is in this plugin:

    https://github.com/micho/jQuery.preventMacBackScroll

    It disabled scrolling for OSX Chrome (I couldn't find a way to disable it for OSX Safari) when you scroll left and up.

    I hope that helps, please contribute to the project with any bugs you find, or if you find a way to disable this annoying behavior for Safari

提交回复
热议问题