Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avm2: Make TextField.getCharIndexAtPoint accurate #18861

Merged
merged 4 commits into from
Jan 16, 2025

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Dec 4, 2024

This patch fixes getCharIndexAtPoint() so that it's accurate for all inputs.

@kjarosh kjarosh added text Issues relating to text rendering/input A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player labels Dec 4, 2024
@kjarosh kjarosh marked this pull request as draft December 4, 2024 21:59
@kjarosh kjarosh force-pushed the get-char-index-at-point branch from 7398312 to 796f2e8 Compare December 4, 2024 22:55
@kjarosh kjarosh added the waiting-on-review Waiting on review from a Ruffle team member label Dec 5, 2024
@kjarosh kjarosh force-pushed the get-char-index-at-point branch 2 times, most recently from 0bf3e99 to 2e5ff5d Compare December 19, 2024 20:10
@kjarosh kjarosh force-pushed the get-char-index-at-point branch from 2e5ff5d to 1e66262 Compare January 5, 2025 08:35
@kjarosh kjarosh marked this pull request as ready for review January 5, 2025 08:40
This patch fixes getCharIndexAtPoint() so that it's accurate for all inputs.
This test verifies the behavior of getCharIndexAtPoint().
@kjarosh kjarosh force-pushed the get-char-index-at-point branch from 1e66262 to 8a0e575 Compare January 16, 2025 22:33
@kjarosh kjarosh enabled auto-merge (rebase) January 16, 2025 22:34
@kjarosh kjarosh removed the waiting-on-review Waiting on review from a Ruffle team member label Jan 16, 2025
@kjarosh kjarosh merged commit 20c1257 into ruffle-rs:master Jan 16, 2025
22 checks passed
@kjarosh kjarosh deleted the get-char-index-at-point branch January 16, 2025 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) T-compat Type: Compatibility with Flash Player text Issues relating to text rendering/input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants