Skip to content

Conversation

@fluffyrabbot
Copy link

@fluffyrabbot fluffyrabbot commented Dec 8, 2025

Summary

  • Lazy-load the SPICE plot with Suspense fallback to defer heavy chart code until the overlay opens, keeping initial render lighter.
  • Align SPICE overlay layering and touch behavior: use zIndex map and touchAction none on the backdrop to avoid background scroll while the modal is open.
  • Throttle global pointer tracking in MouseTracker to reduce hover churn.
  • Realign fixtures: move reset/rerender controls to the left in examples 4/5/7 to avoid overlap, and shift the view menu icon/menu left so it no longer sits over the scrollbar.
  • Preserve mobile view menu touch UX (branch already had the touch fix); clean an unused import.

Test Plan

  • bun run build
  • Cosmos: open SPICE overlay (confirm fallback then plot), open view menu on touch and mouse; verify no interaction regressions.
  • Examples 4/5/7: verify controls no longer overlap with menus/scrollbar.

fluffyrabbot added 4 commits December 7, 2025 16:59
Add stopPropagation() to prevent touch events from bubbling to parent
container handlers that were intercepting the events.

Add touchAction: manipulation CSS to ensure consistent touch behavior
across mobile browsers (especially iOS Safari).

Applied to:
- ViewMenuIcon (hamburger button)
- ViewMenu backdrop (close on tap outside)
- ViewMenu toggle option

Fixes tscircuit#108
@vercel
Copy link

vercel bot commented Dec 8, 2025

Someone is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

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