Skip to content

[docs] Fix remaining Copilot review issues: capitalization and grammar#4058

Closed
Copilot wants to merge 2 commits into@mbert/docs-grammarfrom
copilot/fix-last-copilot-review-problems
Closed

[docs] Fix remaining Copilot review issues: capitalization and grammar#4058
Copilot wants to merge 2 commits into@mbert/docs-grammarfrom
copilot/fix-last-copilot-review-problems

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

  • Rebase copilot/fix-last-copilot-review-problems onto @mbert/docs-grammar, resolving all merge conflicts

j-piasecki and others added 2 commits April 3, 2026 14:35
## Description

Native platforms delay touches when the button is inside a ScrollView.
This may cause situations where press-out is triggered immediately after
press-in, effectively running with no animation.

This PR:
- changes the easing on web to better align with native platforms
- changes `animationDuration` to `pressAndHoldAnimationDuration`
- adds `tapAnimationDuration`

`pressAndHoldAnimationDuration` defaults to `tapAnimationDuration` when
unspecified; `tapAnimationDuration` defaults to 100ms.

Press out handler now has three branches:
1. pressDuration >= `pressAndHoldAnimationDuration` -> press out
animation is started immediately with the duration of
`pressAndHoldAnimationDuration`
2. pressDuration * 2 in [`tapAnimationDuration`,
`pressAndHoldAnimationDuration`] (*2 so there's at least half of
`tapAnimationDuration` for the remaining animation) -> press out
animation is started immediately with the duration of the press so far
3. pressDuration < `tapAnimationDuration / 2` -> pressIn animation is
played fully in the remaining time in `tapAnimationDuration`, and
pressOut is scheduled after with the duration of `tapAnimationDuration`

## Test plan

Updated the button underlay example
Copilot AI review requested due to automatic review settings April 7, 2026 07:34
Copilot AI review requested due to automatic review settings April 7, 2026 07:34
@m-bert m-bert changed the base branch from main to @mbert/docs-grammar April 7, 2026 07:37
Copilot stopped work on behalf of m-bert due to an error April 7, 2026 07:49
Copilot AI requested a review from m-bert April 7, 2026 07:49
@m-bert
Copy link
Copy Markdown
Contributor

m-bert commented Apr 7, 2026

Agent targeted wrong branch. Cherry-picked into #4056

@m-bert m-bert closed this Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants