Finally got screen scrolling in response to cursor movement working