From f25c5dedd6be9a6ffd863dfc4590cc3e50696e07 Mon Sep 17 00:00:00 2001 From: Fritz Reichwald Date: Thu, 29 Dec 2016 00:21:42 +0100 Subject: [PATCH] First try for horizontal scrolling with mouse --- qutebrowser/browser/mouse.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qutebrowser/browser/mouse.py b/qutebrowser/browser/mouse.py index db5055d51..9f9ed34fe 100644 --- a/qutebrowser/browser/mouse.py +++ b/qutebrowser/browser/mouse.py @@ -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):