Skip to content

Scrolling instead of zooming #23

@zhrexl

Description

@zhrexl

Hey,
if you want to stop scrolling when the mouse is above the plot you can overwrite the QScrollArea's eventfilter
self.scrollArea.viewport().installEventFilter(self)

and then do something like that:
def eventFilter(self, obj, event):
if event.type() == QtCore.QEvent.Wheel:
if self.Plot.underMouse():
return True

I thought you might be looking for something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions