Repository navigation
[BUGFIX] Fix FlxInputText cursor, selection and click position when scaled - #34
Merged
Merged
Conversation
ughhhh this took way too fucking long, basically does what i put up there
… for offset oops it sucked before now its better
tried to match it better once again
AbnormalPoof
approved these changes
Oct 22, 2026
AbnormalPoof
left a comment
Member
There was a problem hiding this comment.
You should also PR this upstream!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When
FlxInputTexthas ascaleother than the default, only the text itself is scaled. The cursor, selection boxes, background and border are still drawn at the default size and position, causing misalignment with the text. Pointer input also ignores scale, so interacting with scaled input boxes does not work as intended and attempting to select text causes it to select the wrong characters.Fix
scale,originandoffsettransformWorldToPixels()so clicking selects the correct characters2026-10-22.03-58-45.online-video-cutter.com.mp4
Notes
HaxeUI text in the editors is blurry at higher resolutions because of it being rendered at 720p and then scaled up. Being able to properly render it larger and then scale it down would fix that issue, but input texts need to support scaling first. Currently working on a seperate PR for that but (after not listening to nyko who literally told me this was a flixel bug) didn't realize that this would need to be fixed first.