fixed bodies scaling
This commit is contained in:
@@ -108,11 +108,14 @@ export default {
|
||||
const query = Matter.Query.point(Matter.Composite.allBodies(this.world), this.mouse.position)
|
||||
// console.log(this.mouse.position);
|
||||
// console.log(query);
|
||||
let clickedIDs = [];
|
||||
query.forEach(elmt => {
|
||||
// console.log('body id:', elmt.id);
|
||||
this.concernements.forEach((concernement, index) => {
|
||||
this.openCloseConcernement(concernement.id, elmt.id === concernement.id)
|
||||
});
|
||||
clickedIDs.push(elmt.id);
|
||||
});
|
||||
let opend
|
||||
this.concernements.forEach((concernement, index) => {
|
||||
this.openCloseConcernement(concernement.id, clickedIDs.indexOf(concernement.id) !== -1)
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user