Skip to content

Commit

Permalink
chore: change event
Browse files Browse the repository at this point in the history
  • Loading branch information
ufocoder committed Sep 15, 2024
1 parent 13b872b commit 47babc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ecs/systems/WeaponSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ export default class WeaponSystem extends System {
};

createListeners() {
document.addEventListener("click", this.handleDocumentClick);
document.addEventListener("pointerdown", this.handleDocumentClick);
}

destroyListeners() {
document.removeEventListener("click", this.handleDocumentClick);
document.removeEventListener("pointerdown", this.handleDocumentClick);
}
}

0 comments on commit 47babc6

Please sign in to comment.