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

Method _callDrag

src/dd-draggable.ts:186–193  ·  view source on GitHub ↗

@internal method to call actual drag event

(e: DragEvent)

Source from the content-addressed store, hash-verified

184
185 /** @internal method to call actual drag event */
186 public _callDrag(e: DragEvent): void {
187 if (!this.dragging) return;
188 const ev = Utils.initEvent<DragEvent>(e, { target: this.el, type: 'drag' });
189 if (this.option.drag) {
190 this.option.drag(ev, this.ui());
191 }
192 this.triggerEvent('drag', ev);
193 }
194
195 /** @internal called when the main page (after successful mousedown) receives a move event to drag the item around the screen */
196 protected _mouseMove(e: DragEvent): boolean {

Callers 2

_mouseMoveMethod · 0.95
DDDraggableClass · 0.95

Calls 3

uiMethod · 0.95
initEventMethod · 0.80
triggerEventMethod · 0.80

Tested by

no test coverage detected