forked from M-Labs/artiq
gui: ignore only unmodified wheelevents
This commit is contained in:
parent
00d4775da5
commit
41ca223c45
@ -17,11 +17,11 @@ def log_level_to_name(level):
|
||||
|
||||
class _WheelFilter(QtCore.QObject):
|
||||
def eventFilter(self, obj, event):
|
||||
if event.type() == QtCore.QEvent.Wheel:
|
||||
if (event.type() == QtCore.QEvent.Wheel and
|
||||
event.modifiers() == QtCore.Qt.NoModifier):
|
||||
event.ignore()
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return False
|
||||
|
||||
|
||||
def disable_scroll_wheel(widget):
|
||||
|
Loading…
Reference in New Issue
Block a user