handle touch
This commit is contained in:
3
main.js
3
main.js
@ -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)
|
Reference in New Issue
Block a user