diff --git a/submodules/DrawingUI/Sources/DrawingTextEntity.swift b/submodules/DrawingUI/Sources/DrawingTextEntity.swift index 042d030743..b7de4b8a3b 100644 --- a/submodules/DrawingUI/Sources/DrawingTextEntity.swift +++ b/submodules/DrawingUI/Sources/DrawingTextEntity.swift @@ -47,7 +47,7 @@ public final class DrawingTextEntityView: DrawingEntityView, UITextViewDelegate self.textView.minimumZoomScale = 1.0 self.textView.maximumZoomScale = 1.0 self.textView.keyboardAppearance = .dark - self.textView.autocorrectionType = .no + self.textView.autocorrectionType = .default self.textView.spellCheckingType = .no super.init(context: context, entity: entity) diff --git a/submodules/TelegramUI/Components/MediaEditorScreen/Sources/VideoScrubberComponent.swift b/submodules/TelegramUI/Components/MediaEditorScreen/Sources/VideoScrubberComponent.swift index 3dff49801f..c69cc6a380 100644 --- a/submodules/TelegramUI/Components/MediaEditorScreen/Sources/VideoScrubberComponent.swift +++ b/submodules/TelegramUI/Components/MediaEditorScreen/Sources/VideoScrubberComponent.swift @@ -361,6 +361,11 @@ final class VideoScrubberComponent: Component { 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 {