From 94e1a6a8b3ce661f9e26daafdbf91535afde3d97 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sun, 16 Jul 2023 16:01:51 +0200 Subject: [PATCH] Fix entities view selection --- submodules/DrawingUI/Sources/DrawingEntitiesView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/submodules/DrawingUI/Sources/DrawingEntitiesView.swift b/submodules/DrawingUI/Sources/DrawingEntitiesView.swift index 412bf86c0c..7d98f514e2 100644 --- a/submodules/DrawingUI/Sources/DrawingEntitiesView.swift +++ b/submodules/DrawingUI/Sources/DrawingEntitiesView.swift @@ -610,6 +610,9 @@ public final class DrawingEntitiesView: UIView, TGPhotoDrawingEntitiesView { private func entity(at location: CGPoint) -> DrawingEntityView? { var intersectedViews: [DrawingEntityView] = [] for case let view as DrawingEntityView in self.subviews { + if view is DrawingMediaEntityView { + continue + } if view.precisePoint(inside: self.convert(location, to: view)) { intersectedViews.append(view) }