Skip to content

Can Swipe Cell While Scrolling #18

Description

@hbursk

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.

Activity

  1. designatednerd commented on Mar 30, 2015

    @designatednerd
    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.

  2. hbursk commented on Mar 30, 2015

    @hbursk
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions