Implement mouse scrolling on Windows and X11 targets