Skip to content

Commit

Permalink
Fix #3794 - Stop the message composer from randomly changing the curs…
Browse files Browse the repository at this point in the history
…or position
  • Loading branch information
stefanceriu committed Feb 17, 2025
1 parent 323df6f commit e8786be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ private struct UITextViewWrapper: UIViewRepresentable {
}

func textViewDidChangeSelection(_ textView: UITextView) {
if selectedRange.wrappedValue != textView.selectedRange {
DispatchQueue.main.async {
DispatchQueue.main.async {
if self.selectedRange.wrappedValue != textView.selectedRange {
self.selectedRange.wrappedValue = textView.selectedRange
}
}
Expand Down

0 comments on commit e8786be

Please sign in to comment.