Skip to content

Commit 8cb2261

Browse files
committed
comment
1 parent c82f6ca commit 8cb2261

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ public void onRemoveFocus(ModularGuiContext context) {
153153
if (mouseButton == 1) {
154154
this.handler.clear();
155155
} else {
156+
// the current transformation does not include the transformation of the children (the scroll) so we need to manually transform here
156157
int x = getContext().getMouseX() + getScrollX();
157158
int y = getContext().getMouseY() + getScrollY();
158159
this.handler.setCursor(this.renderer.getCursorPos(this.handler.getText(), x, y), true);

0 commit comments

Comments
 (0)