Fixed: collection view crash on unepexted drag events.

This commit is contained in:
Alexander Ljungberg
2012-10-23 11:21:42 +01:00
parent f4dc08f1f8
commit 0f5d459ed8
+4
View File
@@ -690,6 +690,10 @@
- (void)mouseDragged:(CPEvent)anEvent
{
// Don't crash if we never registered the intial click.
if (!_mouseDownEvent)
return;
var locationInWindow = [anEvent locationInWindow],
mouseDownLocationInWindow = [_mouseDownEvent locationInWindow];