mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Removed MessageText long press gesture recognizer (#1584)
This commit is contained in:
@@ -18,13 +18,9 @@ import SwiftUI
|
|||||||
import UIKit
|
import UIKit
|
||||||
|
|
||||||
final class MessageTextView: UITextView {
|
final class MessageTextView: UITextView {
|
||||||
override func addGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer) {
|
// This prevents the magnifying glass from showing up
|
||||||
// Prevent long press to show the magnifying glass
|
override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
|
||||||
if gestureRecognizer is UILongPressGestureRecognizer {
|
gestureRecognizer as? UILongPressGestureRecognizer == nil
|
||||||
gestureRecognizer.isEnabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
super.addGestureRecognizer(gestureRecognizer)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
Fixed a bug that made a magnifying glass appear when long pressing a message.
|
||||||
Reference in New Issue
Block a user