MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / onStartMoving

Method onStartMoving

src/gridstack.ts:2738–2745  ·  view source on GitHub ↗
(event: Event, ui: DDUIData)

Source from the content-addressed store, hash-verified

2736
2737 /** called when item starts moving/resizing */
2738 const onStartMoving = (event: Event, ui: DDUIData) => {
2739 // trigger any 'dragstart' / 'resizestart' manually
2740 this.triggerEvent(event, event.target as GridItemHTMLElement);
2741 cellWidth = this.cellWidth();
2742 cellHeight = this.getCellHeight(true); // force pixels for calculations
2743
2744 this._onStartMoving(el, event, ui, node, cellWidth, cellHeight);
2745 }
2746
2747 /** called when item is being dragged/resized */
2748 const dragOrResize = (event: MouseEvent, ui: DDUIData) => {

Callers

nothing calls this directly

Calls 4

triggerEventMethod · 0.95
cellWidthMethod · 0.95
getCellHeightMethod · 0.95
_onStartMovingMethod · 0.95

Tested by

no test coverage detected