diff --git a/VoxelSpace.html b/VoxelSpace.html index 0795635..9eb0312 100755 --- a/VoxelSpace.html +++ b/VoxelSpace.html @@ -203,7 +203,7 @@ function GetMousePosition(e) { // fix for Chrome - if (isNaN(e.pageX)) + if (e.type.startsWith('touch')) { return [e.targetTouches[0].pageX, e.targetTouches[0].pageY]; } else