Skip to content

Complete interrupted toast swipe cleanup - #3148

Merged
ymichael merged 1 commit into
mainfrom
bb/fixer-complete-mobile-toast-gesture-cleanup-thr_uws2qh7drm
Sep 5, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fixer-complete-mobile-toast-gesture-cleanup-thr_uws2qh7drm

Conversation

@ymichael

@ymichael ymichael commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The compact-web toast gesture added in #2984 could leave Sonner's swipe state active when Safari canceled a pointer or dropped pointer capture. The toast stayed displaced, and Sonner treated the stack as interacting, which could pause later automatic dismissals indefinitely. The app also carried a second gesture implementation alongside Sonner's own tracker.

What changed

  • Patch Sonner 1.7.4 to reset interrupted pointer gestures and resume toast timers on pointer cancellation or capture loss.
  • Keep immediate axis selection, toast-button tap/drag arbitration, and click suppression inside the toast library.
  • Remove the app's duplicate 184-line pointer tracker while preserving compact left, right, and upward dismissal.
  • Add focused regressions for both pointer cancellation and pointer-capture loss.

How you verified

  • CI=1 pnpm install --frozen-lockfile --ignore-scripts
  • pnpm exec turbo run test --filter=@bb/app --force -- 'src/components/AppToaster.test.tsx' (10/10 passed)
  • pnpm exec turbo run typecheck build --filter=@bb/app --force
  • Targeted oxfmt --check
  • git diff --check origin/main...HEAD
  • The fixer also ran the full app suite (3,852 passed, 3 skipped), lint with 0 errors, and compact/desktop browser QA before handoff.

AGENT GENERATED

@ymichael
ymichael merged commit 56edd72 into main Sep 5, 2026
16 checks passed
@ymichael
ymichael deleted the bb/fixer-complete-mobile-toast-gesture-cleanup-thr_uws2qh7drm branch September 5, 2026 21:05
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.

1 participant