mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Don't show tooltips if the mouse cursor is outside the control
This commit is contained in:
@@ -228,11 +228,22 @@ namespace TreelistView
|
||||
{
|
||||
m_tooltipTimer.Stop();
|
||||
|
||||
if(m_tooltipNode == null)
|
||||
if (m_tooltipNode == null)
|
||||
{
|
||||
m_tooltip.Hide(this);
|
||||
return;
|
||||
}
|
||||
|
||||
Node node = m_tooltipNode;
|
||||
|
||||
Point p = PointToClient(Cursor.Position);
|
||||
|
||||
if (!ClientRectangle.Contains(p))
|
||||
{
|
||||
m_tooltip.Hide(this);
|
||||
return;
|
||||
}
|
||||
|
||||
int visibleRowIndex = CalcHitRow(PointToClient(Cursor.Position));
|
||||
|
||||
Rectangle rowRect = CalcRowRectangle(visibleRowIndex);
|
||||
|
||||
Reference in New Issue
Block a user