Fix entities view selection

This commit is contained in:
Ilya Laktyushin 2023-07-16 16:01:51 +02:00
parent f801c81a9d
commit 94e1a6a8b3

View File

@ -610,6 +610,9 @@ public final class DrawingEntitiesView: UIView, TGPhotoDrawingEntitiesView {
private func entity(at location: CGPoint) -> DrawingEntityView? { private func entity(at location: CGPoint) -> DrawingEntityView? {
var intersectedViews: [DrawingEntityView] = [] var intersectedViews: [DrawingEntityView] = []
for case let view as DrawingEntityView in self.subviews { for case let view as DrawingEntityView in self.subviews {
if view is DrawingMediaEntityView {
continue
}
if view.precisePoint(inside: self.convert(location, to: view)) { if view.precisePoint(inside: self.convert(location, to: view)) {
intersectedViews.append(view) intersectedViews.append(view)
} }