Skip to content

feat: new faster setText()#34

Merged
divyanshu-patil merged 1 commit intomainfrom
feat/typerich_ios
Jan 5, 2026
Merged

feat: new faster setText()#34
divyanshu-patil merged 1 commit intomainfrom
feat/typerich_ios

Conversation

@divyanshu-patil
Copy link
Owner

older setText() had random cursor jumps while handling text via controlled input

new:
Implemented diff-based text replacement with smart cursor tracking:
Key Changes:

  • Diff-based setText: Only replaces changed portions instead of entire text, preserving cursor context
  • Smart cursor adjustment: Calculates cursor delta based on change location relative to cursor position

@divyanshu-patil divyanshu-patil merged commit c9f69b6 into main Jan 5, 2026
5 checks passed
@divyanshu-patil divyanshu-patil deleted the feat/typerich_ios branch January 5, 2026 19:26
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