zijlijn concepten beter geplaatst
This commit is contained in:
@@ -9,6 +9,7 @@ export class CmapInteractionController {
|
||||
this.activeMarqueeCleanup = null;
|
||||
this.canvasPanPointerDownHandler = null;
|
||||
this.activeCanvasPanCleanup = null;
|
||||
this.boundaryRefreshScheduled = false;
|
||||
}
|
||||
|
||||
get items() { return this.editor.items; }
|
||||
@@ -24,9 +25,19 @@ export class CmapInteractionController {
|
||||
this.moveSubmapGroup(record, x, y, moveMembership);
|
||||
queueMicrotask(() => this.redrawAllConnectors());
|
||||
}
|
||||
this.scheduleBoundaryRefresh();
|
||||
return { x, y };
|
||||
}
|
||||
|
||||
scheduleBoundaryRefresh() {
|
||||
if (this.boundaryRefreshScheduled) return;
|
||||
this.boundaryRefreshScheduled = true;
|
||||
window.requestAnimationFrame(() => {
|
||||
this.boundaryRefreshScheduled = false;
|
||||
if (!this.editor.destroyed) this.editor.refreshBoundaryReferences();
|
||||
});
|
||||
}
|
||||
|
||||
beginItemMove(record, includeDescendants = false) {
|
||||
if (record.moveMembership) return record.moveMembership;
|
||||
let groupItems = [record];
|
||||
|
||||
Reference in New Issue
Block a user