Skip to content

Commit

Permalink
gsuiPanels: fix mousemove/up outside window gridsound/daw#28 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr21 committed Dec 12, 2017
1 parent eeac289 commit 99f96c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gsuiPanels/gsuiPanels.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ function gsuiPanels( root ) {
}

gsuiPanels.bodyEventsInit = function() {
document.body.addEventListener( "mousemove", function( e ) {
document.addEventListener( "mousemove", function( e ) {
gsuiPanels._focused && gsuiPanels._focused._onmousemove( e );
} );
document.body.addEventListener( "mouseup", function( e ) {
document.addEventListener( "mouseup", function( e ) {
gsuiPanels._focused && gsuiPanels._focused._onmouseup( e );
} );
delete gsuiPanels.bodyEventsInit;
Expand Down

0 comments on commit 99f96c7

Please sign in to comment.