Closed
Description
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?