Multi-window input handling. (#3911)
This commit is contained in:
committed by
GitHub
parent
31c5b18fe2
commit
d796dcfcca
@@ -72,7 +72,7 @@ namespace Content.Client.State
|
||||
var renderScale = 1;
|
||||
if (UserInterfaceManager.CurrentlyHovered is IViewportControl vp)
|
||||
{
|
||||
var mousePosWorld = vp.ScreenToMap(InputManager.MouseScreenPosition);
|
||||
var mousePosWorld = vp.ScreenToMap(InputManager.MouseScreenPosition.Position);
|
||||
entityToClick = GetEntityUnderPosition(mousePosWorld);
|
||||
|
||||
if (vp is ScalingViewport svp)
|
||||
|
||||
Reference in New Issue
Block a user