Closed bastiaanterhorst closed 4 months ago
Thanks very much for doing this. I will take a quick look and hopefully just merge.
Looks great, thanks again!
Would this change also enable dragging something onto a splitter with a hidden section and have it open that section to drop it there? Dragging items was not being recognized and I thought this might be it.
@eduo could very well be!
I found myself wanting to capture the dragGesture in my custom splitter to tweak some styling as the splitter was being dragged. With the current implementation this is not possible since it uses .gesture() which 'eats' all events. This PR is a tiny tweak to switch to using .simultaneousGesture() which allows the splitter to also implement its own drag gestures without breaking the main splitter drag behaviour.
Here's an example splitter implementation that uses this functionality: