Use a boolean to track whether we are scrolling in CursorHider