Fix scrolling bug on touch devices.