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

TouchableNativeFeedback: onLongPress not fired after delay if finger is moved while pressing #16628

Closed
hrmoller opened this issue Nov 1, 2017 · 1 comment
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@hrmoller
Copy link

hrmoller commented Nov 1, 2017

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: macOS High Sierra 10.13
Node: 8.8.1
Yarn: 1.2.1
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.0.1 Build version 9A1004
Android Studio: 3.0 AI-171.4408382

Packages: (wanted => installed)
react: 16.0.0-beta.5 => 16.0.0-beta.5
react-native: https://github.com/expo/react-native/archive/sdk-22.0.1.tar.gz => 0.49.3

Steps to Reproduce

  1. Create an element using TouchableNativeFeedback and set the delayLongPress-prop to e.g. 1000 (ms) and onLongPress={() => console.log('onLongPress')}
  2. Press the element on a physical or a virtual device and while pressed move the finger/mouse over the element.
  3. onLongPress is never fired

Expected Behavior

I would expect onLongPress to be fired and 'onLongPress' logged to console after the delay.

Actual Behavior

onLongPress is never fired

Reproducible Demo

I have created this Snack that reproduces the issue mentioned above.
https://snack.expo.io/S14uovvCb

@stale
Copy link

stale bot commented Jan 1, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 1, 2018
@stale stale bot closed this as completed Jan 8, 2018
@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

1 participant