2gis / 2gis/mapsapi

Strange behavior of Location button in Firefox when map drag occured

Open
#364 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
212
Forks
36
PR merge metrics
No merged PRs in 30d

Description

Нашли следующую багу, которая воспроизводится на демо примере ( http://api.2gis.ru/doc/maps/ru/examples/controls/ ) с контролом определения местоположения на карте:

  1. Кликаем на значок определение местоположения
  2. Разрешаем в Firefox доступ к геолокации во всплывающем окне
  3. Видим что нас определило на карте
  4. Начинаем таскать карту
  5. На каждый 2-3 драг карты нас внезапно возвращает на исходную определенную точку

Правильное поведение - центрование карты происходит только в момент нажатия на кнопку определения локации, а не после каждой попытке таскания карты

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

Reproduce the issue in Firefox using the location-control demo at http://api.2gis.ru/doc/maps/ru/examples/controls/. Start by tracing the location control and its interaction with map dragging. Done means the map centers on the detected location only when the location button is pressed, and dragging no longer returns it to that point.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.