ZINC-FYP-2022-23 / console

ZINC UI for teaching assistants
1 stars 0 forks source link

fix(gui): drop on stage not working when on top of label #29

Closed AnsonH closed 1 year ago

AnsonH commented 1 year ago

Description

When I'm dragging a new stage on top of an existing stage node, the drop indicator disappears whenever the mouse enters the stage label box.

https://user-images.githubusercontent.com/57580593/202088733-f6cff220-f310-40d2-b30f-04968811b54e.mp4

AnsonH commented 1 year ago

The reason is that dragleave event will be fired at the root of StageNode when we hover over the child element of it (the <span> that holds the stage label).

Solution: https://stackoverflow.com/a/18582960/11067496