Is it possible to prevent just horizontal scrolling when overflow-x is hidden?

Posted by Andrew LeClair on Stack Overflow See other posts from Stack Overflow or by Andrew LeClair
Published on 2010-04-15T19:58:04Z Indexed on 2010/04/17 5:23 UTC
Read the original article Hit count: 464

Filed under:
|
|
|

I have a web page that has content which extends past the right edge of the browser window. I set overflow-x: hidden on <body> to turn off the bottom scrollbar, but I can still scroll horizontally with the trackpad, which is not what I want.

Is there any way to prevent the browser from scrolling horizontally?

As a side note: Safari 4.0.4 only scrolls horizontally sometimes, and the scrolling feels "sticky" and "jumpy," whereas Firefox always smoothly scrolls horizontally.

© Stack Overflow or respective owner

Related posts about overflow

Related posts about hidden