First try for horizontal scrolling with mouse

This commit is contained in:
Fritz Reichwald 2016-12-29 00:21:42 +01:00
parent c63e2ee3b0
commit f25c5dedd6

View File

@ -127,6 +127,12 @@ class MouseEventFilter(QObject):
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()
else:
self._tab.scroll.right()
return False
def _handle_context_menu(self, _e):