[Cuis-dev] Re : drag & drop
Luciano Notarfrancesco
luchiano at gmail.com
Tue Nov 11 04:39:26 PST 2025
Thanks for the remainder, the d&d howto looks very nice! But still, there’s
no way to show visual feedback on wether a drop target is valid or not,
currently we can only drop it and hope for the best. I think we should
dispatch mouse enter/leave/hover events even if the hand is dragging
something (and alternative ideas are welcome). I looked at some d&d design
principles today, I’ll look in more detail at how other graphical systems
do it, I think we can improve it. In the meantime, I just hacked two
methods in HandMorph to dispatch those events anyway, and now it works but
I’m getting a few artifacts…
On Tue, Nov 11, 2025 at 19:17 H. Fernandes via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:
> Did you check out doc.cuis.st, there is a doc about drag and drop
>
> Dr. Geo -- http://gnu.org/s/dr-geo
>
> ----- Luciano Notarfrancesco via Cuis-dev <cuis-dev at lists.cuis.st>
> a écrit :
> > Our implementation of drag & drop in morphic doesn’t seem to provide a
> > mechanism for showing visual feedback on wether the morph that you’re
> > hovering will accept or not the dragged morph. Or is it? I can’t find it.
> > I’d like to highlight the target morph when the hand hovers over it with
> a
> > morph that it can accept, and I tried implementing it mouse
> > enter/leave/hover events but they are not delivered unless the hand is
> > empty (i.e., not during drag). Any idea? Am I missing something?
> >
> > Also, it would be nice to have a way to calcel drag (with ESC, maybe?).
> > Right now I just cancel by dropping it in its original place but it feels
> > awkward.
>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20251111/72464a3d/attachment.htm>
More information about the Cuis-dev
mailing list