patch to send out multiple packets without things breaking

This commit is contained in:
2025-09-08 12:47:46 -05:00
parent 5714564bd5
commit 4a93e87a46
2 changed files with 7 additions and 3 deletions
+5
View File
@@ -29,6 +29,7 @@ class CompleteNodeOnEdgeEngine {
this.timer = null;
this.lastTime = 0;
this.targetInterval = this.time_delay;
this._movementInitialized = false;
}
setArrivalCallback(callback) {
@@ -39,6 +40,10 @@ class CompleteNodeOnEdgeEngine {
* Initializes the movement of the nodes on edges.
*/
initMovement() {
if (this._movementInitialized) {
return;
}
this._movementInitialized = true;
// Update the position of the dot node before the redraw event
this.network.on('beforeDrawing', (ctx) => {
if (this.edgesMoved) {