mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix #3794 - Stop the message composer from randomly changing the cursor position
This commit is contained in:
committed by
Stefan Ceriu
parent
323df6f1c5
commit
e8786be6cd
+2
-2
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user