Skip to content

iOS draggable doesn't "keep up" with finger #55

Closed

Description

@scottmas

The gist of this problem is that on iOS, when you drag a draggable element very quickly and the user's finger goes outside the bounds of the draggable element, the drag movement abruptly stops. Just run the code at https://github.com/kmagiera/react-native-gesture-handler/blob/master/Example/draggable/index.js on iOS and move your finger very quickly to see what I mean.

On one level, this does make sense, since the user's finger is no longer on the draggable element. But from a usability perspective, it seems as though this is not the right interaction. And on Android, no matter how fast you move your finger, the draggable element is never lost, which is more in line with the interaction we would expect to see.

Activity

  1. kmagiera commented on Nov 20, 2017

    @kmagiera
    Member

    Hey @scottmas! Thanks for reaching out

    This behaviour can be changed using shouldCancelWhenOutside={false} option set on PanHandler component.

    This option used to default to true on iOS. This has been recently changed here a15e534 – although that change hasn't yet been released.

  2. scottmas commented on Nov 21, 2017

    @scottmas
    ContributorAuthor

    Oh excellent! Thank you

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions