Fix event processing on C3D_MODEL_VIEWER to allow click-to-focus

This commit is contained in:
Cirilo Bernardo 2016-03-02 12:29:20 +11:00
parent 5e0e2538d0
commit 862cd7e5a4
1 changed files with 5 additions and 2 deletions

View File

@ -396,6 +396,7 @@ void C3D_MODEL_VIEWER::OnMouseMove( wxMouseEvent &event )
void C3D_MODEL_VIEWER::OnLeftDown( wxMouseEvent &event )
{
//m_is_moving_mouse = true;
event.Skip();
}
@ -403,12 +404,14 @@ void C3D_MODEL_VIEWER::OnLeftUp( wxMouseEvent &event )
{
//m_is_moving_mouse = false;
//Refresh( false );
event.Skip();
}
void C3D_MODEL_VIEWER::OnMiddleDown( wxMouseEvent &event )
{
//m_is_moving_mouse = true;
event.Skip();
}
@ -416,11 +419,11 @@ void C3D_MODEL_VIEWER::OnMiddleUp( wxMouseEvent &event )
{
//m_is_moving_mouse = false;
//Refresh( false );
event.Skip();
}
void C3D_MODEL_VIEWER::OnRightClick( wxMouseEvent &event )
{
event.Skip();
}