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
Support Modifier.dragAndDropSource
and Modifier.dragAndDropTarget
#4235
Comments
Any signs of life? |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Do you have a contribution guide? I wrote the |
We don't have a contribution guide, but the usual process is to just ask in the issue before contribution. This issue is important, so we'll gladly review/accept contribution. The PR should be done to https://github.com/JetBrains/compose-multiplatform-core repo (see the PR template when you create the PR)
|
It would be great if you could speed up proceedings, although drag and drop is still perfectly implementable with I hope these features come soon. |
@igordmn I'm familiar with using |
https://github.com/JetBrains/compose-multiplatform-core doesn't use/require |
g3th is there a basic guide/example how to implement it via pointerInput ? I am migrating an android jetpack compose project to kotlin multiplatform compose and this is a huge blocker. |
Ok I guess you meant this ;
which is fine and works but in this case you cannot drag the composable outside of the surrounding composable.. if you want to drag and drop into a target somewhere else like explained here : https://canopas.com/how-to-drag-and-drop-using-modifier-drag-and-drop-source-target-jetpack-compose its not possible |
Hi gochev, I am not sure I have understood what you mean correctly. It is possible to create an event listener without using these newly implemented modifiers If you meant accepting drag and drop events which begin from outside the GUI (i.e. dropping a desktop textfile into your GUI, like you would drop into your browser) then I am not sure it is possible yet. |
It was merged from Jetpack Compose 1.6:
https://android-developers.googleblog.com/2024/01/whats-new-in-jetpack-compose-january-24-release.html
See "Drag and drop"
The text was updated successfully, but these errors were encountered: