@galacean/effects-core 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v1.2.4
6
+ * Version: v1.2.5
7
7
  */
8
8
 
9
9
  /******************************************************************************
@@ -13142,9 +13142,13 @@ var InteractVFXItem = /** @class */ (function (_super) {
13142
13142
  this.handleDragMove(this.dragEvent, this.bouncingArg);
13143
13143
  }
13144
13144
  };
13145
- InteractVFXItem.prototype.onItemRemoved = function (composition) {
13145
+ InteractVFXItem.prototype.onEnd = function () {
13146
+ if (this.composition) {
13147
+ this.composition.removeInteractiveItem(this, this.ui.options.type);
13148
+ }
13149
+ };
13150
+ InteractVFXItem.prototype.onItemRemoved = function () {
13146
13151
  var _a;
13147
- composition.removeInteractiveItem(this, this.ui.options.type);
13148
13152
  this.clickable = false;
13149
13153
  (_a = this.previewContent) === null || _a === void 0 ? void 0 : _a.mesh.dispose();
13150
13154
  this.endDragTarget();