Remove hovering on objects when mouse leaves 3D scene
This commit is contained in:
parent
828d3ddabc
commit
dd014136b0
1 changed files with 6 additions and 0 deletions
|
@ -2678,6 +2678,12 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt)
|
||||||
m_mouse.set_start_position_2D_as_invalid();
|
m_mouse.set_start_position_2D_as_invalid();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
else if (evt.Leaving())
|
||||||
|
{
|
||||||
|
// to remove hover when mouse goes out of this canvas
|
||||||
|
m_mouse.position = Pointf((coordf_t)pos.x, (coordf_t)pos.y);
|
||||||
|
render();
|
||||||
|
}
|
||||||
else if (evt.LeftDClick() && (m_hover_volume_id != -1))
|
else if (evt.LeftDClick() && (m_hover_volume_id != -1))
|
||||||
m_on_double_click_callback.call();
|
m_on_double_click_callback.call();
|
||||||
else if (evt.LeftDown() || evt.RightDown())
|
else if (evt.LeftDown() || evt.RightDown())
|
||||||
|
|
Loading…
Add table
Reference in a new issue