Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 Brautaset authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  Classes/BoardView.m
2  Classes/BoardView.m
@@ -109,7 +109,7 @@ - (void)touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event {
109 109 if (activeCell)
110 110 [self setCell:activeCell highlight:NO];
111 111
112   - CALayer *cell = [self.layer hitTest:point];
  112 + CALayer *cell = [[self.layer.presentationLayer hitTest:point] modelLayer];
113 113 if (cell && [cell isKindOfClass:[SBLayer class]]) {
114 114 activeCell = (SBLayer*)cell;
115 115 [self setCell:activeCell highlight:YES];

0 comments on commit b2a9989

Please sign in to comment.
Something went wrong with that request. Please try again.