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

Pressable ripple should pick press event coordinates on subsequent press. #31669

Conversation

intergalacticspacehighway
Copy link
Contributor

@intergalacticspacehighway intergalacticspacehighway commented Jun 6, 2021

Summary

Please watch the recording below for better explanation. Ripple effect starts from previous press event's coordinates on subsequent presses.

120929621-58983280-c707-11eb-8055-eb52d1920877.mov

Changelog

[Android] [Fixed] - Pressable ripple subsequent press coordinates.

Test Plan

  • Tested all Pressable examples. Registering coordinates before press seems to fix the issue.
Screen.Recording.2021-06-06.at.8.48.05.PM.mov

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 6, 2021
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 3827ca6

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 9,239,929 +21
android hermes armeabi-v7a 8,749,860 +9
android hermes x86 9,702,238 +18
android hermes x86_64 9,667,452 +18
android jsc arm64-v8a 10,886,894 -5
android jsc armeabi-v7a 9,788,117 +2
android jsc x86 10,944,610 -7
android jsc x86_64 11,551,359 +3

Base commit: 3827ca6

@facebook-github-bot
Copy link
Contributor

@kacieb has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@kacieb merged this pull request in 961b00d.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 8, 2021
facebook-github-bot pushed a commit that referenced this pull request Jul 7, 2021
…#31777)

Summary:
TouchableNativeFeedback's ripple starts from previous location on subsequent presses. This is similar to #31669

Fixes #28944

Issue

https://user-images.githubusercontent.com/23293248/123521731-1f375f00-d6d6-11eb-8e4c-fc5ffb322e67.mov

Fix

https://user-images.githubusercontent.com/23293248/123521735-2bbbb780-d6d6-11eb-88b2-be75342cf22a.mov

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[Android] [Fixed] - TouchableNativeFeedback ripple starts on previous touch location.

Pull Request resolved: #31777

Test Plan: Tested TouchableNativeFeedback examples in rn-tester app. Registering coordinates before pressed command fixes the issue.

Reviewed By: lunaleaps

Differential Revision: D29496515

Pulled By: kacieb

fbshipit-source-id: 77ac626181a61eee2cd30c4d48e52d10d800f2d8
@intergalacticspacehighway intergalacticspacehighway deleted the pressable-ripple-fix branch August 9, 2024 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Needs: React Native Team Attention
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants