Skip to content

Conversation

@cpcallen
Copy link
Collaborator

@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 RaspberryPiFoundation: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

None yet

Development

Successfully merging this pull request may close these issues.

Check whether a keyboard drag is in progress from core

2 participants