Fix scroll blocking when scrollPastEnd is enabled

This is the proposal to fix the issue:
Ace steals mousewheel events even when it is not scrollable. The bug occurs when you scroll down and `scrollPastEnd` is enabled.

Should we cache getScreenLength() or is there a better approach to fix the issue?