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.
This commit is contained in:
Vadim Zeitlin 2015-09-15 01:30:38 +02:00
parent 7f856bd633
commit f137753f28

View File

@ -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() )