Fix the cursor when scroll zooming. Fixes issue #1216.