Skip to content

Stop scrolling before recognizing a cell touch #9

Closed
steipete opened this Issue Dec 13, 2011 · 3 comments

2 participants

@steipete

Currently GMGridView has a very annoying behavior that it recognizes touches that are only intended to end scrolling as a proper cell touch. I'm gonna look into it, but I'm really wondering why this doesn't annoy anyone else?

In the demo you can see that "DId tap at index" is written as soon as I stop scrolling. Touching a grid item should only ever be possible when no scroll movement is there.

@gmoledina
Owner

I agree. We can ignore the tap gesture in the gestureRecognizerShouldBegin: method.
I'm just not sure what's the elegant way to know if the scrollview is scrolling (or has just stopped scrolling).

@steipete

I'll have a solution, updating my pull request.

@steipete steipete added a commit that referenced this issue Dec 13, 2011
@steipete steipete Fixes issue #9 with recognizing taps while scrolling
Also exposes scrollView (as this is *really* useful sometimes)
Also adds UIViewAnimationOptionAllowUserInteraction for iOS4, so that animations don't block the whole user interface.
7856796
@gmoledina gmoledina added a commit that referenced this issue Dec 15, 2011
@steipete steipete Fixes issue #9 with recognizing taps while scrolling
Also exposes scrollView (as this is *really* useful sometimes)
Also adds UIViewAnimationOptionAllowUserInteraction for iOS4, so that animations don't block the whole user interface.
487b4af
@gmoledina
Owner

Merged

@gmoledina gmoledina closed this Dec 15, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.