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)
{