Fix bug #10076 with vertical cursor motion in hscrolled windows.