diff options
author | Naleo Hyde <2079998+naleo@users.noreply.github.com> | 2021-07-04 10:00:11 -1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-04 10:00:11 -1000 |
commit | a6a7691f28b10c92886d0bda8fb6ef5d068634f1 (patch) | |
tree | 3520289f64338e0313f72889f4a5a0e540a33a96 /qutebrowser | |
parent | d980dcb7578789a118f8f3dc0173c4064a563576 (diff) | |
download | qutebrowser-a6a7691f28b10c92886d0bda8fb6ef5d068634f1.tar.gz qutebrowser-a6a7691f28b10c92886d0bda8fb6ef5d068634f1.zip |
Update qutebrowser/mainwindow/tabwidget.py
Co-authored-by: Florian Bruhin <me@the-compiler.org>
Diffstat (limited to 'qutebrowser')
-rw-r--r-- | qutebrowser/mainwindow/tabwidget.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index ef4138c7f..7983127d5 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -711,7 +711,9 @@ class TabBar(QTabBar): index = self.currentIndex() if index == -1: return - delta = e.angleDelta().x() if abs(e.angleDelta().x()) > abs(e.angleDelta().y()) else e.angleDelta().y() + dx = e.angleDelta().x() + dy = e.angleDelta().y() + delta = dx if abs(dx) > abs(dy) else dy offset = -1 if delta > 0 else 1 index += offset if 0 <= index < self.count(): |