Skip to content

Commit

Permalink
click to toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
OrionReed committed Dec 11, 2024
1 parent 1f883fe commit e557f83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/projector.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@
});

document.addEventListener('click', (event) => {
if (event.target === document.body) {
console.log(event.target);
if (event.target === document.body || event.target === projector) {
projector.project();
}
});
Expand Down

0 comments on commit e557f83

Please sign in to comment.