-
Notifications
You must be signed in to change notification settings - Fork 703
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
Conversation
There was a problem hiding this 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)
798e44d
to
eb82044
Compare
Add a `DragArea` and `DropArea` elements. It is currently gated as experimental.
eb82044
to
619065f
Compare
Yes, the cursor remain in the cannot-drop shape. |
/// [`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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/dregging/dragging/
There was a problem hiding this comment.
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
Add a
DragArea
andDropArea
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