Skip to content

Configurable tap marker overlay styles and duration #69

Open

Description

@rafiki270

Summary

Add options to control the visual marker shown for coordinate taps.

Requested behavior

When a coordinate tap is displayed on the page, callers should be able to choose the marker style:

  • current blue circle
  • crosshair marker with coordinate text

For the crosshair style, show two coordinate pairs:

  • viewport coordinates, in CSS viewport pixels
  • page coordinates, including the current page scroll offset

Callers should also be able to specify how long the marker remains visible before fading out.

Candidate API shape

Extend coordinate interaction endpoints such as tap with an optional marker object:

{
  "x": 120,
  "y": 240,
  "marker": {
    "style": "circle" | "crosshair-coordinates",
    "durationMs": 1500
  }
}

The exact field names can change during design, but the behavior should stay cross-platform and keep iOS, macOS, and Android visually aligned.

Acceptance criteria

  • tap can keep the current blue circle behavior by default.
  • Callers can request a crosshair marker with viewport and page coordinate text.
  • Callers can configure marker display duration before fade-out.
  • Behavior and API shape are mirrored across iOS, macOS, and Android.
  • Docs and MCP/CLI schemas describe the marker options.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions