(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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user