Fixes bug where window elements made the scroller go in reverse