mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Fix #692: Consider layout transform in findNode
This commit is contained in:
parent
b13d043073
commit
d89e2047fe
@ -150,6 +150,9 @@ class AnimationUtils {
|
||||
}
|
||||
parent = parent?.parentRenderer
|
||||
}
|
||||
if let viewPlace = renderer.view?.place {
|
||||
uncachedParentsPlace = uncachedParentsPlace.concat(with: viewPlace)
|
||||
}
|
||||
return uncachedParentsPlace
|
||||
}
|
||||
}
|
||||
|
@ -346,10 +346,11 @@ internal class DrawingView: MView {
|
||||
defer {
|
||||
MGraphicsEndImageContext()
|
||||
}
|
||||
guard let ctx = MGraphicsGetCurrentContext() else {
|
||||
guard let ctx = MGraphicsGetCurrentContext(), let inverted = self.place.invert() else {
|
||||
return .none
|
||||
}
|
||||
return doFindNode(location: location, ctx: ctx)
|
||||
let loc = location.applying(inverted.toCG())
|
||||
return doFindNode(location: loc, ctx: ctx)
|
||||
}
|
||||
|
||||
// MARK: - Touches
|
||||
|
Loading…
Reference in New Issue
Block a user