Merge branch 'fiete201-horizontal-scroll'
This commit is contained in:
commit
52b5ef787a
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user