visgl / visgl/react-google-maps
[Bug] mouse-movement not working when using some controlled props
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 193
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 13
Description
Description
When controlled props are updated/restricted when handling the cameraChanged events, map can't be dragged anymore.
(source: #423)
Steps to Reproduce
https://codesandbox.io/p/devbox/snowy-dream-hnwmyh?file=%2Fsrc%2Fapp.tsx%3A19%2C1-20%2C1
Environment
- Library version: 1.1.0
- Google maps version: 3.57.4 (weekly)
- Browser and Version: any
- OS: any
Logs
No response
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 with the linked CodeSandbox reproduction, especially src/app.tsx lines 19-20, and trace how controlled props are updated from cameraChanged events. Confirm the map can no longer be dragged after those updates, then verify that dragging continues to work while the controlled values remain restricted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100