Permalink
Browse files

Merge pull request #61 from iamcam/master

Fixed Issue #60
  • Loading branch information...
2 parents 87f8f48 + 1c8057a commit 7e96dca286185e4fc7ee90d99e0e77eee02f5596 @AlanQuatermain committed May 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Examples/SpringBoard/Classes/SpringBoardViewController.m
View
2 Examples/SpringBoard/Classes/SpringBoardViewController.m
@@ -230,7 +230,7 @@ - (void) moveActionGestureRecognizerStateChanged: (UIGestureRecognizer *) recogn
CGRect r = [_gridView rectForItemAtIndex: _emptyCellIndex];
CGRect f = _draggingCell.frame;
f.origin.x = r.origin.x + floorf((r.size.width - f.size.width) * 0.5);
- f.origin.y = r.origin.y + floorf((r.size.height - f.size.height) * 0.5);
+ f.origin.y = r.origin.y + floorf((r.size.height - f.size.height) * 0.5) - _gridView.contentOffset.y;
NSLog( @"Gesture ended-- moving to %@", NSStringFromCGRect(f) );
_draggingCell.frame = f;

0 comments on commit 7e96dca

Please sign in to comment.