Skip to content

Phase 2 (4/5): touch support for the committee page's ideology chart tooltip - #460

Open
JeffreyBLewis wants to merge 1 commit into
touch-tooltips-partyfrom
touch-tooltips-committee
Open

Phase 2 (4/5): touch support for the committee page's ideology chart tooltip#460
JeffreyBLewis wants to merge 1 commit into
touch-tooltips-partyfrom
touch-tooltips-committee

Conversation

@JeffreyBLewis

Copy link
Copy Markdown
Collaborator

Summary

Stacks on #459 so this diff only shows the new commit, `c86a9fd`.

Same pattern as `party.js`'s ideology chart tooltip: binds an individual mouseover/mouseout/mousemove handler per data point, so it gets the same `bindTouchTap` (per point) + `bindTouchDismiss` (once for the whole set) split.

Test plan

Verified with headless Chromium on /committees/H_Agriculture:

  • Desktop (mouse): hover still shows correct content and hides on mouseout
  • Touch (iPhone 13 emulation): tapping a point shows the tooltip with correct content; tapping elsewhere dismisses it; no page/console errors
  • Full existing 41-check suite (unrelated files, sanity check only) still passes
  • Manual check on an actual touch device, if you get a chance

🤖 Generated with Claude Code

https://claude.ai/code/session_013KJMYfgTNsxrmjHZpZKAHT

…te 4 of 5)

Same pattern as party.js's ideology chart tooltip (#459): binds an
individual mouseover/mouseout/mousemove handler per data point, so it
gets the same bindTouchTap (per point) + bindTouchDismiss (once for the
whole set) split rather than one document-wide dismiss listener per
point.

Verified with headless Chromium on /committees/H_Agriculture:
- Desktop (mouse): hover still shows correct content and hides on
  mouseout
- Touch (iPhone 13 emulation): tapping a point shows the tooltip with
  correct content; tapping elsewhere dismisses it; no page or console
  errors
- Full existing 41-check suite (unrelated files, sanity check only)
  still passes

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013KJMYfgTNsxrmjHZpZKAHT
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