You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the pick event is fired before the mouse pressed event. This makes detecting a situation where the user has clicked the plot but not selected anything very difficult. I'm currently facing this exact problem working on an application that embedds mpl plots into a Qt GUI. The only solutions we could come up with are either saving a timestamp for the last pick event and checking whether the mouse pressed event occured right after or just manually writing our own pick detection inside of the mouse pressed event.
Proposed solution
Changing the order of these events would save us from a lot of head aches. The reverse sitation would no be a problem either since the developer knows that a mouse press event has to fire beforea pick event
The text was updated successfully, but these errors were encountered:
Problem
Currently the pick event is fired before the mouse pressed event. This makes detecting a situation where the user has clicked the plot but not selected anything very difficult. I'm currently facing this exact problem working on an application that embedds mpl plots into a Qt GUI. The only solutions we could come up with are either saving a timestamp for the last pick event and checking whether the mouse pressed event occured right after or just manually writing our own pick detection inside of the mouse pressed event.
Proposed solution
Changing the order of these events would save us from a lot of head aches. The reverse sitation would no be a problem either since the developer knows that a mouse press event has to fire beforea pick event
The text was updated successfully, but these errors were encountered: