Skip to content

[9.3-release] fix(core): remove the 300ms click delay when doubleClickZoom is off (#10384) - #10973

Merged
chrisgervang merged 3 commits into
9.3-releasefrom
chr/backport-10422-9.3
Oct 29, 2026
Merged

chrisgervang merged 3 commits into
9.3-releasefrom
chr/backport-10422-9.3

Conversation

@chrisgervang

@chrisgervang chrisgervang commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Backport of #10422 for #10384. Part of #10811.

Background

9.3.4 added a ~300ms delay to every click (#10384). The fix reached master inside #10416, which also adds DoubleClickDrag and conflicts on 9.3. This ports only the click-delay part. mjolnir.js stays at 3.0.

Change List

  • constants.ts: dblclick recognizer starts disabled
  • deck.ts: watch dblclick for picking, so picking alone doesn't enable it
  • deck.ts: clone the view when the controller prop changes, so runtime changes apply
  • deck.ts: copy the views array first, so the caller's array isn't modified
  • Unit test: frozen views array with the controller prop
  • Interaction tests (read eventManager directly; 9.3 has no getEventManager())
  • Documentation: doubleClickZoom click latency

test/interaction/map-controller.spec.ts passes 13/13 in --project browser --browser.headless. Two of the new tests fail without the fix.

🤖 Generated with Claude Code

…10384)

Backport of the click-delay part of #10422 (merged into master via #10416)
to 9.3-release, without the DoubleClickDrag recognizer.

- The dblclick recognizer starts disabled, and Deck watches dblclick for
  picking, so only the controller's doubleClickZoom option enables it
- Clone the view when the controller prop changes so runtime changes apply
- Interaction tests; they read the protected eventManager field because
  Deck.getEventManager() isn't on 9.3
@chrisgervang chrisgervang mentioned this pull request Oct 29, 2026
12 tasks done
@greptile-apps

greptile-apps Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Removes the click delay when doubleClickZoom is off and makes runtime controller changes take effect.

  • Single clicks respond right away when double-click zoom is off.
  • A running map applies controller changes without changing the caller's view.

Reviews (4) · Last reviewed commit: "test(core): keep the frozen views array ..." · Reviewed by Greptile

Comment thread modules/core/src/lib/deck.ts Resolved
Comment thread test/interaction/map-controller.spec.ts Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 05cdf8c. Configure here.

Comment thread modules/core/src/lib/deck.ts Resolved
@coveralls

coveralls commented Oct 29, 2026 •

Copy link
Copy Markdown

Coverage Status

Coverage is 83.615% — chr/backport-10422-9.3 into 9.3-release. No base build found for 9.3-release.

Cloning the first view wrote into the caller's views array, which throws
when the array is frozen.
Comment thread test/modules/core/lib/deck.spec.ts Resolved
@chrisgervang

Copy link
Copy Markdown
Collaborator Author

@greptile-apps re-review

@chrisgervang

Copy link
Copy Markdown
Collaborator Author

Released in deck.gl 9.3.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants