Fix various small mouse scrolling issues

This commit is contained in:
Florian Bruhin 2016-12-29 00:38:52 +01:00
parent ce71b59894
commit 643cf3f578

View File

@ -126,12 +126,12 @@ class MouseEventFilter(QObject):
perc = int(100 * factor)
message.info("Zoom level: {}%".format(perc))
self._tab.zoom.set_factor(factor)
if e.modifiers() & Qt.ShiftModifier:
if e.anglelta().y() < 0:
self._tab.scroll.left()
elif e.modifiers() & Qt.ShiftModifier:
if e.angleDelta().y() > 0:
self._tab.scroller.left()
else:
self._tab.scroll.right()
self._tab.scroller.right()
return True
return False