Wow that’s such an old thread, but I’m experiencing the exact same problem. More specifically this thing :
The way I do it is the way suggested in that thread : when my UI component (which inherits DragAndDropTarget) reveives the itemDragEnter/Move callbacks, it sends an update to the controller, which updates the GUI again (I do that because I have several components to move at once).
The gui->controller->gui path is very fast (<1ms) so I guess it shouldn’t be perceptible. And to update the gui, I simply call ‘setTopLeftPosition’ (I think that’s the way it’s done in the jucer, from what I’ve seen in the code)
I tried a few things, like calling repaint() from a Timer more frquently, but it didn’t help …
So I’m down to the conclusion that itemDragMove isn’t called often enough or do you see any other possible explanation?
I tried to use the mouseListenerMethods, but they don’t work either :
- mouseDrag sends callbacks to the source component (I want them in the destination component)
- mouseMove doesn’t send callbacks if a button is pressed …
There’s probably a better way to do this but I’m short of ideas, so if anyone knows what’s the exact cause of this problem and can suggest a solution, it will be greatly appreciated !