Skip to content

Commit 0f2a8db

Browse files
Trishanshvamilcarlucas
authored andcommitted
fix(MouseWheel): Enable mousewheel scroll over label and text fields
1 parent fc2b495 commit 0f2a8db

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ardupilot_methodic_configurator/frontend_tkinter_component_editor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def handle_mousewheel(_event: tk.Event, widget: tk.Widget = cb) -> Optional[str]
184184
# Check if dropdown is open by examining the combobox's state
185185
dropdown_is_open = getattr(widget, "dropdown_is_open", False)
186186
if not dropdown_is_open:
187+
widget.master.event_generate("<MouseWheel>", delta=_event.delta) # type: ignore[attr-defined]
187188
return "break" # Prevent default behavior
188189
return None # Allow default behavior when dropdown is open
189190

0 commit comments

Comments
 (0)