Does .mouseOverAction, .mouseEnterAction (and etc) functions not work while drag&drop operation is processed (so mouse key pressed)? What can be the solution if I would like to use mouse event processing while drag&dropping?
(
var win, sink, source;
Window.closeAll;
win = Window(bounds: Rect(300, 275, 200, 200));
win.front;
win.view.acceptsMouseOver_(true);
sink = DragSink(win, Rect(25, 110, 150, 65)).align_(\center).string_("DragSink").receiveDragHandler_({});
// not working while dragging
sink.mouseEnterAction_({
sink.background_(Color.grey(0.8));
"mouse entered DragSink".postln;
});
// not working while dragging
sink.mouseLeaveAction_({
sink.background_(Color(219, 219, 219));
"mouse leaved DragSink".postln;
});
source = DragSource(win, Rect(25, 25, 150, 65)).align_(\center).string_("DragSource");
source.beginDragAction_({
"dragged".postln;
});
// not working with .beginDragAction
source.mouseUpAction_({
"mouse up".postln;
});
)