Fix flashing tooltip.
This commit is contained in:
@@ -194,7 +194,7 @@ namespace FlaxEngine.GUI
|
||||
{
|
||||
// Auto hide if mouse leaves control area
|
||||
Vector2 mousePos = Input.MouseScreenPosition;
|
||||
Vector2 location = _showTarget.ScreenToClient(mousePos / Platform.DpiScale);
|
||||
Vector2 location = _showTarget.ScreenToClient(mousePos);
|
||||
if (!_showTarget.OnTestTooltipOverControl(ref location))
|
||||
{
|
||||
// Mouse left or sth
|
||||
|
||||
@@ -234,7 +234,7 @@ namespace FlaxEngine.GUI
|
||||
/// <inheritdoc />
|
||||
public override Vector2 ScreenToClient(Vector2 location)
|
||||
{
|
||||
return _window.ScreenToClient(location);
|
||||
return _window.ScreenToClient(location) / Platform.DpiScale;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user