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:
parent
7f856bd633
commit
f137753f28
@ -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() )
|
||||
|
Loading…
Reference in New Issue
Block a user