Skip to content

fix(macos): use correct textContainerInset properties for caret rect#247

Merged
hryhoriiK97 merged 3 commits intomainfrom
fix/macos-caret-rect-inset
Apr 16, 2026
Merged

fix(macos): use correct textContainerInset properties for caret rect#247
hryhoriiK97 merged 3 commits intomainfrom
fix/macos-caret-rect-inset

Conversation

@hryhoriiK97
Copy link
Copy Markdown
Collaborator

What/Why?

Fixes caret positioning on macOS by using the correct NSEdgeInsets properties (.left/.top) instead of .width/.height when computing the caret rect offset from textContainerInset. The previous properties are incorrect for NSEdgeInsets and could result in a mispositioned cursor.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes

@hryhoriiK97 hryhoriiK97 merged commit 86914a0 into main Apr 16, 2026
5 checks passed
@hryhoriiK97 hryhoriiK97 deleted the fix/macos-caret-rect-inset branch April 16, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant