Scroll Callback
- property Window.scroll_callback: callable
Callback executed when the mouse scrolls.
The callback function receives floats representing the x and y components of the current scroll.
def scroll_callback(xscroll: float, yscroll: float) -> None: # code here
- Raises
TypeError – callback must be callable
ValueError – callback function must take 2 arguments
- Return type
callable