Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

When a finger/mouse is dragged, query the presentation layer to figure

out which layer we're on. This means that since we increase the size of
the layer we're in, we don't exit it so easily.
  • Loading branch information...
commit b2a99894e33fea70a6ead962e8ee8a9e3148c923 1 parent 2881f0b
@stig authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Classes/BoardView.m
2  Classes/BoardView.m
@@ -109,7 +109,7 @@ - (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event {
if (activeCell)
[self setCell:activeCell highlight:NO];
- CALayer *cell = [self.layer hitTest:point];
+ CALayer *cell = [[self.layer.presentationLayer hitTest:point] modelLayer];
if (cell && [cell isKindOfClass:[SBLayer class]]) {
activeCell = (SBLayer*)cell;
[self setCell:activeCell highlight:YES];
Please sign in to comment.
Something went wrong with that request. Please try again.