mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Enable drawing text autocorrection
This commit is contained in:
parent
bf5a8709cc
commit
12dde45917
@ -47,7 +47,7 @@ public final class DrawingTextEntityView: DrawingEntityView, UITextViewDelegate
|
|||||||
self.textView.minimumZoomScale = 1.0
|
self.textView.minimumZoomScale = 1.0
|
||||||
self.textView.maximumZoomScale = 1.0
|
self.textView.maximumZoomScale = 1.0
|
||||||
self.textView.keyboardAppearance = .dark
|
self.textView.keyboardAppearance = .dark
|
||||||
self.textView.autocorrectionType = .no
|
self.textView.autocorrectionType = .default
|
||||||
self.textView.spellCheckingType = .no
|
self.textView.spellCheckingType = .no
|
||||||
|
|
||||||
super.init(context: context, entity: entity)
|
super.init(context: context, entity: entity)
|
||||||
|
@ -361,6 +361,11 @@ final class VideoScrubberComponent: Component {
|
|||||||
|
|
||||||
return scrubberSize
|
return scrubberSize
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
|
||||||
|
let hitTestSlop = UIEdgeInsets(top: -8.0, left: -9.0, bottom: -8.0, right: -9.0)
|
||||||
|
return self.bounds.inset(by: hitTestSlop).contains(point)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public func makeView() -> View {
|
public func makeView() -> View {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user