Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(render): dispose cycle (#2393)

Univerbfe75db149be
diff --git a/packages/engine-render/src/scene.input-manager.ts b/packages/engine-render/src/scene.input-manager.ts
index 8c8034263c..d90799027f 100644
--- a/packages/engine-render/src/scene.input-manager.ts
+++ b/packages/engine-render/src/scene.input-manager.ts
@@ -102,9 +102,9 @@ export class InputManager extends Disposable {
super.dispose();
this.detachControl();
this._scene = null as unknown as ThinScene;
- this._currentMouseEnterPicked?.dispose();
+ // this._currentMouseEnterPicked?.dispose();
this._currentMouseEnterPicked = null;
- this._currentObject?.dispose();
+ // this._currentObject?.dispose();
this._currentObject = null;
this._startingPosition = null as unknown as Vector2;
clearTimeout(this._delayedTimeout);