Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hit point when ASCollectionNode inverted set to true #1781

Merged
3 changes: 2 additions & 1 deletion Source/Details/_ASCollectionViewCell.mm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
* superclass hitTest:withEvent: implementation. If this returns a valid value we can go on with
* checking the node as it's expected to not be in one of these states.
*/
if (![super hitTest:self.bounds.origin withEvent:event]) {
CGPoint originPointOnView = [self convertPoint:self.node.view.bounds.origin fromView:self.node.view];
bdolman marked this conversation as resolved.
Show resolved Hide resolved
if (![super hitTest:originPointOnView withEvent:event]) {
return nil;
}

Expand Down