Skip to content

feat: let the pointer reach and click a marker's preview - #58

Merged
karngyan merged 1 commit into
mainfrom
feat/clickable-marker-preview
Oct 7, 2026
Merged

karngyan merged 1 commit into
mainfrom
feat/clickable-marker-preview

Conversation

@karngyan

@karngyan karngyan commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

What was wrong

A rich marker preview closed as soon as the pointer left the marker. Readers could not move up to the card or click it, even though it invites them to open the comment.

What this PR changes

  • Keep a rich preview open while the pointer moves from its marker into it. An invisible strip under the card fills the gap to the markers.
  • Make the card clickable when the player has onMarkerClick. A click does what a click on the marker does, and does not seek.
  • Hold the card still while the pointer is over it.
  • Close it when the pointer leaves for anywhere other than a marker.
  • Previews without rich content are unchanged.

How I tested it

pnpm test (267 tests, 2 new), pnpm typecheck and pnpm build pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@karngyan
karngyan merged commit 165f5f9 into main Oct 7, 2026
5 checks 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.

1 participant