Merge pull request #65 from dumbovita/fix/agent-doctor-and-wheel

Fix doctor CLI check, inactive wheel focus, and agent shortcut label
This commit is contained in:
Yusuf İpek
2026-09-09 11:21:47 +03:00
committed by GitHub
5 changed files with 66 additions and 4 deletions
+3 -1
View File
@@ -223,7 +223,9 @@ class WheelGuard(QObject):
"""
def eventFilter(self, box, event):
if event.type() == QEvent.Type.Wheel and not box.hasFocus():
win = box.window()
focused = box.hasFocus() or (win is not None and win.focusWidget() is box)
if event.type() == QEvent.Type.Wheel and not focused:
# Refused rather than swallowed. An unaccepted wheel event carries
# on up the parents to the scroll area, so the page still moves.
event.ignore()