Fix viewport hovering when hover mode is set to right-click

This commit is contained in:
Jonathan G Rennison
2019-03-11 19:19:54 +00:00
parent c6fa43d767
commit 2bd33c1869
4 changed files with 7 additions and 3 deletions

View File

@@ -776,7 +776,9 @@ struct TooltipsWindow : public Window
case TCC_HOVER: if (!_mouse_hovering) delete this; break;
case TCC_HOVER_VIEWPORT:
if (!_mouse_hovering) {
if (_settings_client.gui.hover_delay_ms == 0) {
this->delete_next_mouse_loop = true;
} else if (!_mouse_hovering) {
delete this;
break;
}