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) }