From 643cf3f5788946010bdc8997985a9e5465d66c87 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 29 Dec 2016 00:38:52 +0100 Subject: [PATCH] Fix various small mouse scrolling issues --- qutebrowser/browser/mouse.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qutebrowser/browser/mouse.py b/qutebrowser/browser/mouse.py index 9f9ed34fe..a1b56b96a 100644 --- a/qutebrowser/browser/mouse.py +++ b/qutebrowser/browser/mouse.py @@ -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