This function allows us to write tests for scrolling scenarios where the events are processed by the EventHandler.