Skip to content

feat(WorkspaceSvg): Add support for tracking keyboard moves #8959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025

Conversation

cpcallen
Copy link
Contributor

@cpcallen cpcallen commented May 2, 2025

The basics

The details

Resolves

Fixes #8874.

Proposed Changes

  • Add a private property .keyboardMoveInProgress with associated @internal set method to WorkspaceSvg to allow Mover to inform the workspace when a keyboard-initiated move is in progress.
  • Modify Workspace.prototype.isDragging to return true if .keyboardMoveInProgress is true as well as when a drag gesture is in progress.

Reason for Changes

Make dragging behaviour more consistent regardless of whether initiated by pointer or keyboard.

Test Coverage

Tested manually by console calls to .setKeyboardMoveInProgress.

Documentation

JSDocs for .isDragging updated to describe current behaviour.

Additional Information

Filed #8960 to implement a less kludgy approach once Mover is part of core (or can at least be more easily accessed from core than at present).

@cpcallen cpcallen changed the title feat(WorkspaceSvg): Add support for tracking keyboard moves feat(WorkspaceSvg)!: Add support for tracking keyboard moves May 2, 2025
@cpcallen cpcallen changed the title feat(WorkspaceSvg)!: Add support for tracking keyboard moves feat(WorkspaceSvg): Add support for tracking keyboard moves May 2, 2025
@cpcallen cpcallen merged commit 7b4f223 into google:rc/v12.0.0 May 2, 2025
10 of 15 checks passed
@cpcallen cpcallen deleted the feat/8853 branch May 2, 2025 16:40
@cpcallen cpcallen linked an issue May 2, 2025 that may be closed by this pull request
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Check whether a keyboard drag is in progress from core
2 participants