8000 Qt5 Backend: dblclick is always False on 'mouse_release_event' · Issue #4001 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
Qt5 Backend: dblclick is always False on 'mouse_release_event' #4001
Closed
@diogolr

Description

@diogolr

Simple as that... The dblclick flag is always False on mouse_release_event because the mouseDoubleClickEvent only call button_press_event, as follow:

backend_qt5.py

def mouseDoubleClickEvent(self, event):
        x = event.pos().x()
        # flipy so y=0 is bottom of canvas
        y = self.figure.bbox.height - event.pos().y()
        button = self.buttond.get(event.button())
        if button is not None:
            FigureCanvasBase.button_press_event(self, x, y,
                                                button, dblclick=True)
        if DEBUG:
            print('button doubleclicked:', event.button())

Can we fix this with a button_release_event call, also?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0