Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Swipe Cell While Scrolling #18

Open
hbursk opened this issue Mar 30, 2015 · 2 comments
Open

Can Swipe Cell While Scrolling #18

hbursk opened this issue Mar 30, 2015 · 2 comments

Comments

@hbursk
Copy link

hbursk commented Mar 30, 2015

If you begin swiping a cell, you cannot scroll. That's great.

However, if you begin scrolling you can move horizontally which will cause a cell to begin to open and be a bit jumpy in its movement. I tested the same idea against the Mail app, and Apple has it pretty well locked down so there's no horizontal cell interaction while scrolling.

@designatednerd
Copy link
Owner

@hbursk Thanks - A colleague saw this on another app and there's a solution somewhere around setting delaysContentTouches to NO on your tableview - give that a shot and see if it helps and I'll try to update the sample project and documentation around it.

@hbursk
Copy link
Author

hbursk commented Mar 30, 2015

Thanks. That didn't seem to do much. My solution was to put:

if ([self.delegate isScrolling])

{

[recognizer setEnabled:NO];

}

at the top of the panReconizerChanged function, and then set [recognizer
setEnabled:YES] in the UIGestureRecognizerStateCancelled branch. Setting
enabled to NO cancels the recognizer, and that stops it from doing
anything. It looks like you had something similar going on before in an
older commit but then took it out. Did that cause a problem I haven't found
yet?

On Mon, Mar 30, 2015 at 3:53 PM, designatednerd notifications@github.com
wrote:

@hbursk https://github.com/hbursk Thanks - A colleague saw this on
another app and there's a solution somewhere around setting
delaysContentTouches to NO on your tableview - give that a shot and see
if it helps and I'll try to update the sample project and documentation
around it.


Reply to this email directly or view it on GitHub
#18 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants