Fixed #24 for horizontal scrolling

I figured it was better to fix it now than have it reemerge later.