fixed puissance d'agir cartouch display

This commit is contained in:
2023-07-06 16:15:24 +02:00
parent 576cdc0445
commit 04eb79af8b
4 changed files with 154 additions and 99 deletions

View File

@@ -1198,6 +1198,14 @@ export default {
},
// ENGINE UPDATE
onBeforeEngineUpdate (event) {
// TODO stop item on mouse hover
if (this.hover_elmt && this.hover_elmt.id === this.id) {
// Matter.Body.setStatic(this.body, true);
} else {
// Matter.Body.setStatic(this.body, false);
}
// update the opening/closing tweening
if (this.tween) {
this.tween.update();
@@ -1526,7 +1534,6 @@ export default {
this.paper_main_object.position = this.pos = this.body.position;
// this.draw()
this.handlePaperVisibility()
},
},