Skip to content

Add click, pointer over, and pointer out event handling to GeoLine and GeoPolygon - #120

Open
nickw1 wants to merge 1 commit into
omnidotdev:masterfrom
nickw1:clickable-lines
Open

Add click, pointer over, and pointer out event handling to GeoLine and GeoPolygon#120
nickw1 wants to merge 1 commit into
omnidotdev:masterfrom
nickw1:clickable-lines

Conversation

@nickw1

@nickw1 nickw1 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Description

Allows GeoLine and GeoPolygon elements to be clickable and handle pointerover and pointerout events.

Added onClick, onPointerOver and onPointerOut attributes to the above components. These are forwarded to the appropriate mesh or group.

NOTE that I had to set the Biome accessibility rule noStaticElementInteractions to warn to allow the commit to be accepted. Biome was giving an error due to adding event handlers to non-input elements. I realise this is a bit quick and dirty, but the rule is presumably aimed more at HTML elements. @coopbri not sure what you want to do about this?

Test Steps

Geolocation test app shows examples of onClick handlers on the two GeoLines and the GeoPolygon. Tested the app on a desktop machine - confirmed as working.

@changeset-bot

changeset-bot Bot commented Aug 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a955859

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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