Skip to content
This repository was archived by the owner on Nov 27, 2022. It is now read-only.

Improve horizontal swipe detection#1

Merged
satya164 merged 6 commits intomasterfrom
detect-horiz
Jul 1, 2016
Merged

Improve horizontal swipe detection#1
satya164 merged 6 commits intomasterfrom
detect-horiz

Conversation

@satya164
Copy link
Copy Markdown
Owner

@satya164 satya164 commented Jul 1, 2016


const POSITION_THRESHOLD = 120;
const VELOCITY_THRESHOLD = 0.000001;
const VELOCITY_THRESHOLD = Platform.OS === 'android' ? 0.0000005 : 0.5; // on Android, velocity is way lower, perhaps due to timestamp being in nanosecond
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a open PR which fixes this, we can remove this condition when it goes to stable - facebook/react-native#8199

@satya164 satya164 merged commit 327de66 into master Jul 1, 2016
jzhan-canva pushed a commit to jzhan-canva/react-native-tab-view that referenced this pull request Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant