fixed puissance d'agir cartouch display
This commit is contained in:
@@ -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()
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user