Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed Issue #60 #61

Merged
merged 1 commit into from

2 participants

@iamcam

Fixed the SpringBoard demo so icons move to the correct location in scrolled views when dragged (Issue #60)

@AlanQuatermain AlanQuatermain merged commit 7e96dca into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 9, 2011
  1. @iamcam

    Fixed the SpringBoard demo so icons move to the correct location in s…

    iamcam authored
    …crolled views when dragged.
This page is out of date. Refresh to see the latest.
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;
Something went wrong with that request. Please try again.