parent
bfa7e277d3
commit
0353888f9e
|
@ -41,11 +41,8 @@ var PointerCamera = function() {
|
|||
document.addEventListener('keydown', onKeyDown, false);
|
||||
document.addEventListener('keyup', onKeyUp, false);
|
||||
document.addEventListener('mousedown', onMouseDown, false);
|
||||
document.addEventListener('touchstart', onMouseDown, false);
|
||||
document.addEventListener('mousemove', onMouseMove, false);
|
||||
document.addEventListener('touchmove', onMouseMove, false);
|
||||
document.addEventListener('mouseup', onMouseUp, false);
|
||||
document.addEventListener('touchend', onMouseUp, false);
|
||||
}
|
||||
PointerCamera.prototype = Object.create(THREE.PerspectiveCamera.prototype);
|
||||
PointerCamera.prototype.constructor = PointerCamera;
|
||||
|
|
|
@ -87,7 +87,6 @@ function init() {
|
|||
window.addEventListener('resize', onWindowResize, false);
|
||||
|
||||
container.addEventListener('mousedown', click, false);
|
||||
container.addEventListener('touchstart', click, false);
|
||||
|
||||
// Load the scene
|
||||
loadScene();
|
||||
|
|
Loading…
Reference in New Issue