[Cuis-dev] Re : drag & drop

Luciano Notarfrancesco luchiano at gmail.com
Thu Nov 13 00:47:13 PST 2025


I’ve been reading some more about this. I propose new events dragEnter:,
dragLeave: and dragHover:, and cancelling with ESC. This seems to be quite
standard.

On Tue, Nov 11, 2025 at 19:39 Luciano Notarfrancesco <luchiano at gmail.com>
wrote:

> 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/20251113/05acb799/attachment.htm>


More information about the Cuis-dev mailing list