fix cursor position in inputnode ()

This commit is contained in:
dankmeme01 2024-01-28 17:00:04 +01:00 committed by GitHub
parent ded1138f79
commit 8f6241a29c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,8 +30,7 @@ struct TextInputNodeFix : Modify<TextInputNodeFix, CCTextInputNode> {
}
this->onClickTrackNode(true);
// TODO: this also relies on the broken position calculation
// this->updateCursorPosition(pos, {{0, 0}, size});
this->updateCursorPosition(touchPos, {{0, 0}, size});
return true;
}