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) perc = int(100 * factor)
message.info("Zoom level: {}%".format(perc)) message.info("Zoom level: {}%".format(perc))
self._tab.zoom.set_factor(factor) self._tab.zoom.set_factor(factor)
elif e.modifiers() & Qt.ShiftModifier:
if e.modifiers() & Qt.ShiftModifier: if e.angleDelta().y() > 0:
if e.anglelta().y() < 0: self._tab.scroller.left()
self._tab.scroll.left()
else: else:
self._tab.scroll.right() self._tab.scroller.right()
return True
return False return False