`doubleClickZoom` handler method `isActive` does not return `true` as expected
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
**mapbox-gl-js version**: main
**browser**: any
While `doubleClickZoom` works as expected, `doubleClickZoom.isActive()` does not return `true` when it is expected to. This behavior can be reproduced by setting up a zoom event listener and calling `doubleClickZoom.isActive()`.
### Expected Behavior
`doubleClickZoom.isActive()` returns true when double click zoom is in progress
### Actual Behavior
`doubleClickZoom.isActive()` returns false
Contributor guide
Research direction
Reproduce the issue by setting up a zoom event listener and calling the doubleClickZoom.isActive() entry point. Trace the doubleClickZoom handler while double-click zoom is in progress, then verify that isActive() returns true during that period and remains false otherwise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100