Skip to content

Conversation

@latin-panda
Copy link
Collaborator

@latin-panda latin-panda commented Jan 21, 2026

Closes #616

I have verified this PR works in these browsers (latest versions):

  • Chrome
  • Firefox
  • Safari (macOS)
  • Safari (iOS)
  • Chrome for Android
  • Not applicable

What else has been done to verify that this works as intended?

Test video: geoshape, geotrace, geopoint

no-long-press.mp4

Why is this the best possible solution? Were any other approaches considered?

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

New user interaction is described in the ticket.
A faster way to add points. Accidental points are expected, but the user can handle them by deleting points or using the undo feature.

Do we need any specific form for testing your changes? If so, please attach one.

The demo form has forms in the geolocation section

What's changed

  • Removes long-press and adds a single click, simplifying event handling in the component
  • Simplifies the status bar's HTML

@changeset-bot
Copy link

changeset-bot bot commented Jan 21, 2026

🦋 Changeset detected

Latest commit: 5085bb1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@getodk/web-forms Minor

Not sure what this means? Click here to learn what changesets are.

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

extent: getProjection(DEFAULT_VIEW_PROJECTION)?.getExtent(),
}),
controls: [new Zoom(), new Attribution({ collapsible: false })],
interactions: defaultInteractions({ doubleClickZoom: false }),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want tap to add only points/vertices (ref: 5th bullet point). The user can still pinch, scroll, and use the +/- buttons to zoom.

@latin-panda latin-panda marked this pull request as ready for review January 27, 2026 14:28
@latin-panda
Copy link
Collaborator Author

@garethbowen This is ready for review!

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.

Remove Long Press Interaction in maps

2 participants