Merge branch 'horizontal-scroll' of https://github.com/fiete201/qutebrowser into fiete201-horizontal-scroll

This commit is contained in:
Florian Bruhin 2016-12-29 00:34:26 +01:00
commit ce71b59894

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):