Skip to content

Commit

Permalink
Update threex.FirstPersonControls.js
Browse files Browse the repository at this point in the history
  • Loading branch information
erichlof committed Sep 15, 2015
1 parent 42b7a09 commit 1558b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/threex.FirstPersonControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ THREEx.FirstPersonControls = function ( camera, isPlayerControlled ) {

var onMouseMove = function ( event ) {

movementX = event.movementX || event.mozMovementX || event.webkitMovementX || 0;
movementY = event.movementY || event.mozMovementY || event.webkitMovementY || 0;
movementX = event.movementX || event.mozMovementX || 0;
movementY = event.movementY || event.mozMovementY || 0;

that.yawObject.rotation.y -= movementX * 0.002;
that.pitchObject.rotation.x -= movementY * 0.002;
Expand Down

0 comments on commit 1558b6f

Please sign in to comment.