handle touch

This commit is contained in:
Rüdiger Diedrich
2021-09-02 16:21:36 +02:00
parent fdec21305b
commit 0fa8b899d4

View File

@ -179,4 +179,5 @@ function doZoom(e) {
container.scale.y = -zoom; // Note: we flip the y axis to make "up" the physics
}
window.addEventListener('wheel', doZoom)
window.addEventListener('click', randomBox)
window.addEventListener('click', randomBox)
window.addEventListener('touchstart', randomBox)