1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-12 05:14:10 +02:00

Fixed issue with cursor going to start of line

This commit is contained in:
Brian Fiete 2020-06-30 05:37:16 -07:00
parent fb421ca9d0
commit ec3eb0b134

View file

@ -3328,14 +3328,8 @@ namespace Beefy.widgets
} }
public void ResetWantX() public void ResetWantX()
{ {
int line; GetTextCoordAtCursor(var x, var y);
int col;
GetLineCharAtIdx(CursorTextPos, out line, out col);
float x;
float y;
GetTextCoordAtLineChar(line, col, out x, out y);
mCursorWantX = x; mCursorWantX = x;
} }