First try for horizontal scrolling with mouse
This commit is contained in:
parent
c63e2ee3b0
commit
f25c5dedd6
@ -127,6 +127,12 @@ class MouseEventFilter(QObject):
|
|||||||
message.info("Zoom level: {}%".format(perc))
|
message.info("Zoom level: {}%".format(perc))
|
||||||
self._tab.zoom.set_factor(factor)
|
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
|
return False
|
||||||
|
|
||||||
def _handle_context_menu(self, _e):
|
def _handle_context_menu(self, _e):
|
||||||
|
Loading…
Reference in New Issue
Block a user