Skip to content

Commit 23a5297

Browse files
committed
fix weird text field behaviour when dragging from start to right
1 parent cc1360a commit 23a5297

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/main/java/com/cleanroommc/modularui/widgets/textfield/TextFieldWidget.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,6 @@ public void setText(@NotNull String text) {
124124
}
125125
}
126126

127-
@Override
128-
public void onFocus(ModularGuiContext context) {
129-
super.onFocus(context);
130-
Point main = this.handler.getMainCursor();
131-
if (main.x == 0) {
132-
this.handler.setCursor(main.y, getText().length(), true, true);
133-
}
134-
}
135-
136127
@Override
137128
public void onRemoveFocus(ModularGuiContext context) {
138129
super.onRemoveFocus(context);

0 commit comments

Comments
 (0)