MCPcopy
hub / github.com/GrapesJS/grapesjs / dragStart

Function dragStart

packages/core/src/utils/ColorPicker.ts:611–619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

609 }
610
611 function dragStart() {
612 if (dragHeight <= 0 || dragWidth <= 0 || slideHeight <= 0) {
613 reflow();
614 }
615 isDragging = true;
616 container.addClass(draggingClass);
617 shiftMovementDirection = null;
618 boundElement.trigger('dragstart.spectrum', [get()]);
619 }
620
621 function dragStop() {
622 isDragging = false;

Callers

nothing calls this directly

Calls 4

reflowFunction · 0.85
getFunction · 0.70
addClassMethod · 0.45
triggerMethod · 0.45

Tested by

no test coverage detected