// stop animating everything and move all the sphere layers so that
// they're directly under the mouse pointer.
NSArray* sublayers = self.containerLayerForSpheres.sublayers;
for ( CALayer* layer in sublayers)
{
[layer removeAllAnimations];
layer.position = cgMousePointInView;
}
This snippet shows that what you are seeing is on purpose
by Jason — Feb 22
// stop animating everything and move all the sphere layers so that // they're directly under the mouse pointer. NSArray* sublayers = self.containerLayerForSpheres.sublayers; for ( CALayer* layer in sublayers) { [layer removeAllAnimations]; layer.position = cgMousePointInView; }
This snippet shows that what you are seeing is on purpose