Skip to content

Commit

Permalink
Merge pull request #7540 from WestLangley/dev-orbit
Browse files Browse the repository at this point in the history
OrbitControls: Restore mouseout listener
  • Loading branch information
mrdoob committed Nov 4, 2015
2 parents 8c69390 + 45123a7 commit aacde82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/js/controls/OrbitControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@

document.addEventListener( 'mousemove', onMouseMove, false );
document.addEventListener( 'mouseup', onMouseUp, false );
document.addEventListener( 'mouseout', onMouseUp, false );
scope.dispatchEvent( startEvent );

}
Expand Down Expand Up @@ -559,6 +560,7 @@

document.removeEventListener( 'mousemove', onMouseMove, false );
document.removeEventListener( 'mouseup', onMouseUp, false );
document.removeEventListener( 'mouseout', onMouseUp, false );
scope.dispatchEvent( endEvent );
state = STATE.NONE;

Expand Down Expand Up @@ -786,6 +788,7 @@

document.removeEventListener( 'mousemove', onMouseMove, false );
document.removeEventListener( 'mouseup', onMouseUp, false );
document.removeEventListener( 'mouseout', onMouseUp, false );

window.removeEventListener( 'keydown', onKeyDown, false );

Expand Down

0 comments on commit aacde82

Please sign in to comment.