Skip to content

[docs] Clarify immediatePressOut description - #4695

Merged
m-bert merged 1 commit into
mainfrom
@mbert/docs-immediate-press-out
Nov 16, 2026
Merged

m-bert merged 1 commit into
mainfrom
@mbert/docs-immediate-press-out

Conversation

@m-bert

@m-bert m-bert commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

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.

@m-bert m-bert added the Documentation Documentation change/enhancement label Nov 13, 2026
Copilot AI lite review requested due to automatic review settings November 13, 2026 13:14
@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Documentation
    • Clarified that custom feedback may not appear when onPressIn and onPressOut are called nearly together after a delayed press report.

The immediatePressOut documentation now explains that late platform press reporting can cause onPressIn and onPressOut to occur nearly together, which may prevent custom feedback from appearing.

Changes: Touchable documentation

Layer / File(s) Summary
Clarify callback timing
packages/docs-gesture-handler/docs/components/touchable.mdx
The immediatePressOut description connects closely spaced callbacks with custom press feedback when a platform reports a press late.
Merge Risk: Minimal · up to f9a7f

This is a documentation clarification with no runtime impact, so it is safe to merge.

Pre-merge checks: Passed 3

Check name Status Explanation
Title check Passed The title "[docs] Clarify immediatePressOut description" names the one file changed and the specific aspect updated. The raw summary shows a +1/-1 documentation edit to the immediatePressOut descrip…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "[docs] Clarify immediatePressOut description" names the one file changed and the specific aspect updated. The raw summary shows a +1/-1 documentation edit to the immediatePressOut description in touchable.mdx, which explains that custom feedback between onPressIn and onPressOut may not appear when a press is reported late. The title is specific and matches the main change.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

packages/docs-gesture-handler/docs/components/touchable.mdx

Oops! Something went wrong! :(

ESLint: 10.14.0

TypeError [ERR_IMPORT_ATTRIBUTE_MISSING]: Module "file:///.eslintrc.json?mtime=1794575722123" needs an import attribute of "type: json"
at validateAttributes (node:internal/modules/esm/assert:110:15)
at defaultLoadSync (node:internal/modules/esm/load:163:3)
at #loadAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:806:12)
at #loadSync (node:internal/modules/esm/loader:838:53)
at ModuleLoader.load (node:internal/modules/esm/loader:787:26)
at ModuleLoader.loadAndTranslate (node:internal/modules/esm/loader:498:31)
at #getOrCreateModuleJobAfterResolve (node:internal/modules/esm/loader:564:36)
at afterResolve (node:internal/modules/esm/loader:611:52)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:617:12)
at node:internal/modules/esm/loader:636:32

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 220d5184-7f30-4291-8403-6030f58caeca
Commits

Reviewing files that changed from the base of the PR and between b9b1140 and f9a7fab.

Files selected for processing: 1

  • packages/docs-gesture-handler/docs/components/touchable.mdx

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 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 onPressIn and ends in onPressOut.
  • 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

@m-bert
m-bert requested a review from j-piasecki November 13, 2026 13:22
@m-bert
m-bert merged commit a5aa4bf into main Nov 16, 2026
3 checks passed
@m-bert
m-bert deleted the @mbert/docs-immediate-press-out branch November 16, 2026 16:12
m-bert added a commit that referenced this pull request Dec 1, 2026
## 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Documentation change/enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants