Adds support for horizontal scrolling

I haven't run the tests, but it's working on my side