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:
@@ -776,7 +776,7 @@ void MyTextCtrl::OnMouseEvent(wxMouseEvent& ev)
|
|||||||
if ( !ms_logMouse )
|
if ( !ms_logMouse )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ( !ev.Moving() )
|
if ( !ev.GetEventType() != wxEVT_MOTION )
|
||||||
{
|
{
|
||||||
wxString msg;
|
wxString msg;
|
||||||
if ( ev.Entering() )
|
if ( ev.Entering() )
|
||||||
|
Reference in New Issue
Block a user