Skip to content

missing mouse event handler check in function: void mpWindow::OnShowPopupMenu(wxMouseEvent &event)Β #72

@asmwarrior

Description

@asmwarrior

Hi, when I try to implement my own mouse event handler, I see the config dialog always pop up when right mouse button get released.

Finally, I found this:

diff --git a/mathplot/mathplot.cpp b/mathplot/mathplot.cpp
index ef09aca..0235615 100644
--- a/mathplot/mathplot.cpp
+++ b/mathplot/mathplot.cpp
@@ -3376,6 +3376,9 @@ void mpWindow::LockAspect(bool enable)
 
 void mpWindow::OnShowPopupMenu(wxMouseEvent &event)
 {
+  if (CheckUserMouseAction(event))
+    return;
+
   // Only display menu if the user has not "dragged" the figure
   if (m_enableMouseNavigation)
   {

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