Change touch listener for canvas from document to container
This commit is contained in:
parent
7b00f72c8b
commit
563ae10e33
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ function createGrid() {
|
|||
gridItems.forEach((item) => {
|
||||
item.addEventListener("pointerover", colorGrid);
|
||||
});
|
||||
document.addEventListener("touchmove", function(e) {
|
||||
container.addEventListener("touchmove", function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
gridItems.forEach((item) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue