Seperate dnd_drag_source closure content from dragable area #7464
-
I'm trying to make a trello-like ToDo board and I have multiple lists of tasks. Each task has a ui method to draw it self which is
What I want to now do is have the dnd source be only the image of the 6 dots, which is what this code does but when I drag it the preview painted on the cursor is only the image. Encapsulating the whole frame in a dnd_drag_source has the correct preview of the entire task being dragged but then the dnd doesnt allow me to click the checkboxes and buttons. Is there a way where dnd_drag_source only activates when dragging the image but the preview drawn at the cursor be the whole task? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
After experimenting I came up with this solution
The code is a bit eye jarring but it works as described. This is the behaviour is code achieves. Basically if its being dragged draw the body inside the closure, else outside it. Then do some Frame stuff to make it always look the same |
Beta Was this translation helpful? Give feedback.
After experimenting I came up with this solution