Disable scrolling for `overflow: hidden` elements

This prevents us from scrolling what should be non-scrolling elements. Fixes #1225.