mirror of https://github.com/m-labs/artiq.git
gui: ignore only unmodified wheelevents
This commit is contained in:
parent
00d4775da5
commit
41ca223c45
|
@ -17,10 +17,10 @@ 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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue