Merge branch 'fiete201-horizontal-scroll'

This commit is contained in:
Florian Bruhin 2016-12-29 00:39:26 +01:00
commit 52b5ef787a
2 changed files with 7 additions and 1 deletions

View File

@ -170,8 +170,8 @@ Contributors, sorted by the number of commits in descending order:
* Nathan Isom
* Thorsten Wißmann
* Austin Anderson
* Jimmy
* Fritz Reichwald
* Jimmy
* Niklas Haas
* Maciej Wołczyk
* Spreadyy

View File

@ -126,6 +126,12 @@ class MouseEventFilter(QObject):
perc = int(100 * factor)
message.info("Zoom level: {}%".format(perc))
self._tab.zoom.set_factor(factor)
elif e.modifiers() & Qt.ShiftModifier:
if e.angleDelta().y() > 0:
self._tab.scroller.left()
else:
self._tab.scroller.right()
return True
return False