mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-21 22:01:31 +03:00
Fix scroll wheel while hovering over a menu separator
This commit is contained in:
parent
140ff15ff1
commit
18ef3898c6
3
menus.py
3
menus.py
@ -188,6 +188,7 @@ class Separator(Static):
|
||||
"""Initialize a separator."""
|
||||
super().__init__(mid_line, **kwargs)
|
||||
self.add_class("separator")
|
||||
self.disabled = True
|
||||
# self.disabled = True # This breaks scroll wheel over the separator, as of Textual 0.20.1
|
||||
self.disabled = False
|
||||
self.action = None
|
||||
self.submenu = None
|
||||
|
Loading…
Reference in New Issue
Block a user