(svn r20145) -Codechange: keep original RMB->tooltip behaviour when hovering is disabled and there is no handled right click event for the widget, i.e. if a widget would handle the right click you won't see the tooltip anymore by right clicking; by enabling hovering you would get access to that tooltip again.

This commit is contained in:
rubidium
2010-07-14 17:36:27 +00:00
parent fa3d9d04d3
commit 0e078670b7
4 changed files with 52 additions and 45 deletions

View File

@@ -1258,12 +1258,12 @@ public:
}
}
virtual void OnRightClick(Point pt, int widget)
virtual bool OnRightClick(Point pt, int widget)
{
if (widget == SM_WIDGET_MAP) {
if (_scrolling_viewport) return;
_scrolling_viewport = true;
}
if (widget != SM_WIDGET_MAP || _scrolling_viewport) return false;
_scrolling_viewport = true;
return true;
}
virtual void OnMouseWheel(int wheel)