jdittrich / quickMockup

HTML based interface mockups
https://jdittrich.github.io/quickMockup/
MIT License
517 stars 97 forks source link

51 outline potential container of dragged element #62

Closed AlaaSarhan closed 4 years ago

AlaaSarhan commented 4 years ago

closes #51

AlaaSarhan commented 4 years ago

@jdittrich if you checkout branch origin/51-outline-potential-container-of-dragged-element locally, you can test a bit what I did here.

It seems to work as intended, including that it takes into account that a parent is only a parent when the dragged element is completely inside it (so it won't glow while dragging until that's the case).

Let me know if you find any new issues with it, or merge if you also think it is good for now

jdittrich commented 4 years ago

I merged. I would think about a way to represent the elements after entering the canvas. One easy way would be adding them on dragenter (with the offset that already exists).