disable horizontal scrolling by finger swipe

Posted by codelove on Stack Overflow See other posts from Stack Overflow or by codelove
Published on 2012-07-04T20:46:55Z Indexed on 2012/07/04 21:15 UTC
Read the original article Hit count: 232

This may just be a mac issue, but I have a page with an element which is twice the size of the page and is moved into view dynamically. in my css I have overflow-x:hidden set so that this element won't create an ugly bottom scollbar, the problem is on my laptop (and probably on ipads and other devices) I can just swipe with two fingers to scroll and view this content. This breaks the whole layout and looks really bad, and I am looking for a way to completely disable this horizontal scrolling action with javascript or css.

Thank you

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about css