quickMockup icon indicating copy to clipboard operation
quickMockup copied to clipboard

v2: represent element as soon as drag enters canvas

Open jdittrich opened this issue 6 years ago • 3 comments

Story: As a user I want to know how the element I will add is like so I can drop it at the right place

Current State: We drag a HTML rectangle of consistent size for each element, how it actually is like is only seen later.

jdittrich avatar Dec 14 '19 17:12 jdittrich

related: #63 ("v2 code quality: Event initialization is messy, needs lots of files to be touched")

jdittrich avatar Dec 14 '19 17:12 jdittrich

Note: …I try with canvas.onDragEnter but so far, I did not get the event handler called when I drag the "usual" jquery element from the outside (aka sidebar). Maybe I need to use the normal draggable of jQueryUI on the canvas and then create an element.

jdittrich avatar Dec 14 '19 18:12 jdittrich

…another way would be just using plain "mouseenter" and checking if the current drag is of the right kind aka dragging an QuickMocukup UI-Element.

jdittrich avatar Dec 15 '19 15:12 jdittrich