Skip to content

Touch ripple follows the press, anywhere on screen - #9

Merged
nikhil174 merged 1 commit into
mainfrom
claude/split-expense-audit-fixes-lwzfce
Oct 29, 2026
Merged

nikhil174 merged 1 commit into
mainfrom
claude/split-expense-audit-fixes-lwzfce

Conversation

@nikhil174

Copy link
Copy Markdown
Owner

This changes the gold touch ripple from #8 to work more like ColorOS.

Changes

  • Anywhere you tap. The ripple now starts wherever the finger lands, including empty space and text, not only buttons, rows and tabs.
  • Follows the press.
    • A quick tap leaves a tiny, faint ripple (14px radius).
    • Holding grows it smoothly, up to 64px, for as long as the finger stays down.
    • On release it fades with a little gold dust: 2 specks for a tap, up to 6 for a long press.
  • Scroll or drag: moving more than 10px lets the ripple fade, so scrolling doesn't leave ripples behind.
  • Buttons, rows and tabs: the ripple stays clipped to the element's shape and follows it while it moves.
  • Disabled controls get no ripple.
  • Reduced motion: a soft glow that holds while pressed and fades on release.

Verification

  • npm test: 646 passed, 0 failed.
  • npm run build passes.
  • The local Playwright E2E (isolated local D1) passed all 11 steps.
  • I took screenshots of a quick tap and a long hold, on empty space and on a button, on a Pixel 7 viewport.
  • I checked that no ripple layer is left behind after a tap, a release, or a drag away.

Generated by Claude Code

ColorOS-style: the ripple now starts wherever the finger lands, including
empty space and text, not only on buttons. A quick tap leaves a tiny, faint
ripple; holding grows it (up to 64px) until release, then it fades with a
little gold dust, more the longer the press. Scrolling or dragging lets it
go. On buttons, rows and tabs it stays clipped to the element; disabled
controls get none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UYo8S9zQAZaaLHKrJq75vt
@nikhil174
nikhil174 merged commit ae5c3d8 into main Oct 29, 2026
1 check passed
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