Skip to content

Modal: tighten swipe rubber band past the open position - #728

Merged
blvdmitry merged 1 commit into
mainfrom
claude/exciting-wright-rwlswn
Nov 22, 2026
Merged

blvdmitry merged 1 commit into
mainfrom
claude/exciting-wright-rwlswn

Conversation

@blvdmitry

Copy link
Copy Markdown
Contributor

Summary

Dragging a Modal past its open position now resists the finger much more, the way it did when the rubber band was first added.

Related Issue

None

Screenshots / Recordings

None. This changes how the gesture feels and has no static visual change.

Notes for Reviewers

undampOvershoot is updated to match, so a swipe that starts while the modal is still springing back from an overshoot starts from the right drag distance.


Generated by Claude Code

Restore square root damping for the overshoot instead of the iOS formula
scaled by the modal size, which let large modals drag too far.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TKGZMjNcpGdzW4FziXktwb
@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Library / JS 54.67 KB (-0.11% 🔽) 1.1 s (-0.11% 🔽) 0 ms (+100% 🔺) 1.1 s
Library / CSS 24.88 KB (0%) 498 ms (0%) 0 ms (+100% 🔺) 498 ms
Theming / JS 7.8 KB (0%) 156 ms (0%) 16 ms (+14.83% 🔺) 171 ms
Theming with a default theme definition / JS 8.68 KB (0%) 174 ms (0%) 54 ms (+1.37% 🔺) 228 ms

@blvdmitry
blvdmitry merged commit 09f1b44 into main Nov 22, 2026
11 checks passed
@blvdmitry
blvdmitry deleted the claude/exciting-wright-rwlswn branch November 22, 2026 11:59
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.

2 participants