From http://stackoverflow.com/questions/20501932/window-scroll-not-working-correctly-on-mobile-devices-and-internet-explorer