Repository navigation
[docs] Clarify immediatePressOut description - #4695
Conversation
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for this documentation-only clarification of deferred press feedback behavior.
No open issues 🎉
What changed in this PR
This documentation-only PR clarifies why immediatePressOut is useful when press handling is deferred, particularly for quick taps inside scrollable containers.
Changes:
- Explains that custom feedback starts in
onPressInand ends inonPressOut. - Describes how deferred quick taps can invoke both callbacks back-to-back, leaving no visible feedback interval.
- Clarifies the scrollable-container scenario and the motivation for
immediatePressOut.
| File | Description |
|---|---|
| packages/docs-gesture-handler/docs/components/touchable.mdx | Rewrites the immediatePressOut explanation to clarify deferred press behavior and why callback-driven feedback may be invisible. |
Review effort: Lite
## Description The description of `immediatePressOut` was hard to follow without already knowing the problem it solves. It said that `onPressIn` and `onPressOut` are called almost at the same time, but not why that makes the feedback invisible. This PR rewrites the first paragraph so it states that custom feedback starts in `onPressIn` and ends in `onPressOut`, gives a scrollable container as an example of when the press is reported late, and then explains that a quick tap leaves no time between the two callbacks. ## Test plan Read the `immediatePressOut` section in the `Touchable` docs.
Description
The description of
immediatePressOutwas hard to follow without already knowing the problem it solves. It said thatonPressInandonPressOutare called almost at the same time, but not why that makes the feedback invisible.This PR rewrites the first paragraph so it states that custom feedback starts in
onPressInand ends inonPressOut, gives a scrollable container as an example of when the press is reported late, and then explains that a quick tap leaves no time between the two callbacks.Test plan
Read the
immediatePressOutsection in theTouchabledocs.