Skip to content

feat(DRAG-DROP): Detect Drag Start Before Movement with StartDelay Consideration #30893

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

Open
endlacer opened this issue Apr 17, 2025 · 0 comments
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team

Comments

@endlacer
Copy link

Feature Description

The current cdkDragStarted event only fires once the user moves the mouse or touch point. However, when using the StartDelay configuration, there is no event or mechanism to detect when dragging becomes possible after the delay completes but before movement begins. This leads to a gap in functionality where developers cannot hook into the moment dragging becomes active.

Suggested Solution
Introduce an additional event (e.g., cdkDragActivated) that fires once the StartDelay has elapsed and dragging becomes possible, regardless of movement. This would enable more granular control and improve the developer experience when working with delayed drag-and-drop functionality.

Related Code/Documentation
The cdkDragStarted event: Drag and Drop Documentation

Use Case

This feature would be particularly useful for scenarios where UI feedback or logic needs to occur as soon as dragging is activated (after the delay), but before the user moves the draggable item.

For example the user wants to indicate that a element is now draggable with an outline.

@endlacer endlacer added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

1 participant