Skip to content

Commit

Permalink
don't capture event canvas/window mousedown/up in look controls (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ngokevin committed Aug 16, 2016
1 parent 8be5553 commit fc6943a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/look-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ module.exports.Component = registerComponent('look-controls', {
}

// Mouse Events
canvasEl.addEventListener('mousedown', this.onMouseDown, false);
window.addEventListener('mousemove', this.onMouseMove, false);
window.addEventListener('mouseup', this.releaseMouse, false);
canvasEl.addEventListener('mousedown', this.onMouseDown);
window.addEventListener('mousemove', this.onMouseMove);
window.addEventListener('mouseup', this.releaseMouse);

// Touch events
canvasEl.addEventListener('touchstart', this.onTouchStart);
Expand Down

0 comments on commit fc6943a

Please sign in to comment.