Fix cursor position of scroll events