We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87f8f48 commit 1c8057aCopy full SHA for 1c8057a
1 file changed
Examples/SpringBoard/Classes/SpringBoardViewController.m
@@ -230,7 +230,7 @@ - (void) moveActionGestureRecognizerStateChanged: (UIGestureRecognizer *) recogn
230
CGRect r = [_gridView rectForItemAtIndex: _emptyCellIndex];
231
CGRect f = _draggingCell.frame;
232
f.origin.x = r.origin.x + floorf((r.size.width - f.size.width) * 0.5);
233
- 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;
234
NSLog( @"Gesture ended-- moving to %@", NSStringFromCGRect(f) );
235
_draggingCell.frame = f;
236
0 commit comments