mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix #3794 - Stop the message composer from randomly changing the cursor position
This commit is contained in:
parent
323df6f1c5
commit
e8786be6cd
@ -190,8 +190,8 @@ private struct UITextViewWrapper: UIViewRepresentable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func textViewDidChangeSelection(_ textView: UITextView) {
|
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
|
self.selectedRange.wrappedValue = textView.selectedRange
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user