Prevent popups from hijacking interaction events
Open
Nobody has claimed this yet.
feature :green_apple:
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
If a popup is beneath the mouse and I try to use trackpad pinch or scroll to zoom, I end up getting the browser default behavior of zooming the whole page instead. I'd propose that, at least by default, popups listen for those events and `preventDefault` on 'em.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the browser zoom behavior with a popup beneath the mouse, then locate the popup event-handling entry point in the map interaction code. Verify that trackpad pinch and scroll events over popups no longer trigger the browser's default page zoom while normal popup interaction remains usable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100