Skip to content

Swipe back with Vertical threshold #2031

@tikkichan4

Description

@tikkichan4

For the swipe back function, i changed the pan handler as below to make the respond area bigger.
const RESPOND_POSITION_MAX_HORIZONTAL = Dimensions.get('window').width / 2;

However it still has a problem which is the swipe back gesture can only detect the swipe right gesture. When the user swipe with top-right, no any action will be taken.
123

Just tried to change
const POSITION_THRESHOLD = 1 / 3;
to
const POSITION_THRESHOLD = 1 / 2;

It seems better but sometimes still not working. And it is weird. Any advance for this purpose ? Thanks a lot !!

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