visgl / visgl/deck.gl

[Bug]Loading deckgl in openlayers requires two clicks to use it normally

Open
#9,776 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

Description

As the title says, after loading deckgl in openlayers, when running in Chrome browser, it is found that the map needs to be clicked twice to drag the map normally, but everything is normal after removing deckgl

Flavors
  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CARTO
  • ArcGIS
Expected Behavior

I hope that after loading deckgl and running it, I can directly click and drag the map to operate, instead of having to click a second time to use it.

Steps to Reproduce
  1. Load Deckgl
  2. Open the browser and browse
  3. Clicking or dragging the map for the first time will not work
  4. You must click a second time for it to work properly
Environment
  • Framework version: deck.gl@9.1.14, vue@3.4.15, openlayers@7.1.1
  • Browser: Chrome 140.0
  • OS: none
Logs

none

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 interaction with deck.gl@9.1.14, vue@3.4.15, and openlayers@7.1.1 in Chrome 140. Compare the map's first click and drag with deck.gl loaded and removed, then trace the event handling involved in the integration. Done means the map responds to the initial click and drag without requiring a second click.

Written by the indexing model from the issue text.

Assessment

Tech stack
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.