MCPcopy Index your code
hub / github.com/mathuo/dockview / onPointerMove

Method onPointerMove

packages/dockview-core/src/splitview/splitview.ts:524–544  ·  view source on GitHub ↗
(event: PointerEvent)

Source from the content-addressed store, hash-verified

522 }
523
524 const onPointerMove = (event: PointerEvent) => {
525 const current =
526 this._orientation === Orientation.HORIZONTAL
527 ? event.clientX
528 : event.clientY;
529 const delta = current - start;
530
531 this.resize(
532 sashIndex,
533 delta,
534 sizes,
535 undefined,
536 undefined,
537 minDelta,
538 maxDelta,
539 snapBefore,
540 snapAfter
541 );
542 this.distributeEmptySpace();
543 this.layoutViews();
544 };
545
546 const end = () => {
547 for (const item of this.viewItems) {

Callers

nothing calls this directly

Calls 3

distributeEmptySpaceMethod · 0.95
layoutViewsMethod · 0.95
resizeMethod · 0.80

Tested by

no test coverage detected