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

后端 未结 8 1927
南笙
南笙 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:44

    I came here while searching for the same thing but from user's point of view. So here's the FF setting that affect this:

    browser.gesture.swipe.left
    browser.gesture.swipe.right
    

    set them to an empty string (delete what is there)

    Source: https://forums.macrumors.com/threads/disabling-firefox-back-forward-from-horizontal-scrolling.111589/

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题