From 7523c6d680687ac0c252d6675e7622e23e0077b8 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 30 Jan 2023 12:56:21 +0100 Subject: [PATCH] use floats --- src/textual/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textual/app.py b/src/textual/app.py index 286278b04..70554beec 100644 --- a/src/textual/app.py +++ b/src/textual/app.py @@ -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[