mapbox / mapbox/mapbox-gl-js

Map interactions broken when I use zoom css property

Open
#11,350 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

mapbox-gl-js version: "2.6.1"

browser: chrome latest version

Steps to Trigger Behavior
  1. Use zoom css prop

image

  1. Create new feature

  2. Add mouse handlers

  3. Try to Drag and Drop.

image

AR: Mouse position doesn't handle correctly

Link to Demonstration

https://youtu.be/PBPg2DQmlnQ

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked reproduction and the map interaction code that handles mouse positions, focusing on the reported CSS zoom behavior and drag-and-drop handlers. Reproduce the issue in Chrome with mapbox-gl-js 2.6.1; done means creating a feature and dragging it reports the correct mouse position when CSS zoom is applied.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.