Skip to content

Markers shift slightly when the map is double clicked #13351

Open
@C2thehris

Description

@C2thehris

When a user is using a map with custom markers, the markers shift slightly when the map is double clicked. This is most visible when the map has a fixed zoom or is at its highest zoom level.

mapbox-gl-js version: Latest

browser: Any (Tested with Chromium + Firefox)

Steps to Trigger Behavior

  1. Zoom into the highest zoom level (or a use a map with fixed zoom)
  2. Double click on the map
  3. Markers sometimes shake slightly

Link to Demonstration

This can be seen by using the custom-markers demo. (see below video)

Expected Behavior

https://github.com/user-attachments/assets/7250fed0-3b62-4e1e-b851-2a68f9f50b70
https://github.com/user-attachments/assets/1ecad5c0-9133-4cfa-946f-34623b88225e

Actual Behavior

https://github.com/user-attachments/assets/85cf749d-b01c-414d-8f1b-05580dfea41e
https://github.com/user-attachments/assets/0f9666e4-8287-4068-aaac-0b4540d0c305

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions