Skip to content

Experimental Drag&Drop support #8729

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 3 commits into from
Jun 26, 2025
Merged

Experimental Drag&Drop support #8729

merged 3 commits into from
Jun 26, 2025

Conversation

ogoffart
Copy link
Member

@ogoffart ogoffart commented Jun 19, 2025

Add a DragArea and DropArea elements.
It is currently gated as experimental.

Use it in the live-preview for the drag&drop between the component library and the preview.

CC #1967

@ogoffart ogoffart requested review from tronical and hunger June 19, 2025 08:29
Copy link
Member

@tronical tronical left a comment

Choose a reason for hiding this comment

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

For an internal implementation, this looks good to me.

How does it behave when I start a drag and move the mouse outside of the application's window? Does the cursor remain in the cannot-drop shape?

(Prepare to add non-copy data in it)
ogoffart added 2 commits June 19, 2025 13:53
Add a `DragArea` and `DropArea` elements.
It is currently gated as experimental.
@ogoffart
Copy link
Member Author

How does it behave when I start a drag and move the mouse outside of the application's window? Does the cursor remain in the cannot-drop shape?

Yes, the cursor remain in the cannot-drop shape.

@ogoffart ogoffart changed the title Experimental Drang&Drop support Experimental Drag&Drop support Jun 20, 2025
@ogoffart ogoffart merged commit a74e548 into master Jun 26, 2025
39 checks passed
@ogoffart ogoffart deleted the olivier/wip-dnd branch June 26, 2025 13:39
/// [`InputEventResult::EventIgnored`] means that the item does not handle the drag operation
/// and [`InputEventResult::EventAccepted`] means that the item can accept it.
DragMove(DropEvent),
/// The mouse is released while dregging over this item.
Copy link
Member

Choose a reason for hiding this comment

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

s/dregging/dragging/

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Made a commit to fix typos: 5a87491

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.

3 participants