From f137753f284ce80cdad100badf7d4ff81572c8d7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 15 Sep 2015 01:30:38 +0200 Subject: [PATCH] Don't log drag events as well as move ones in the text sample Dragging the mouse (even accidentally by a pixel or two) resulted in a confusing "Unknown event" line in the log, so don't log these messages neither just as we already don't log the mouse motion events. --- samples/text/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/text/text.cpp b/samples/text/text.cpp index a610679869..767e93bcc2 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -776,7 +776,7 @@ void MyTextCtrl::OnMouseEvent(wxMouseEvent& ev) if ( !ms_logMouse ) return; - if ( !ev.Moving() ) + if ( !ev.GetEventType() != wxEVT_MOTION ) { wxString msg; if ( ev.Entering() )