use floats

This commit is contained in:
Will McGugan
2023-01-30 12:56:21 +01:00
parent 18946eaa09
commit 7523c6d680

View File

@@ -369,9 +369,9 @@ class App(Generic[ReturnType], DOMNode):
self.css_path = css_paths
self._registry: WeakSet[DOMNode] = WeakSet()
self.scroll_sensitivity_x: float = 4
self.scroll_sensitivity_x: float = 4.0
"""Number of lines to scroll in the X direction with wheel or trackpad."""
self.scroll_sensitivity_y: float = 2
self.scroll_sensitivity_y: float = 2.0
"""Number of lines to scroll in the Y direction with wheel or trackpad."""
self._installed_screens: WeakValueDictionary[