Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Commit 20fa2d3

Browse files
author
Alexis Huvier
committed
fix(lineinput): Use RealPosition in Focused
1 parent 7c8bdaa commit 20fa2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SharpEngine/Widget/LineInput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public override void Update(float delta)
7777

7878
if (InputManager.IsMouseButtonPressed(MouseButton.Left))
7979
{
80-
Focused = InputManager.IsMouseInRectangle(new Rect(Position - Size / 2, Size));
80+
Focused = InputManager.IsMouseInRectangle(new Rect(RealPosition - Size / 2, Size));
8181
if (!Focused && _cursor)
8282
_cursor = false;
8383
}

0 commit comments

Comments
 (0)