Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add document mousemove and mouseup listeners to the list of listeners…

… to be removed on destroy, fixes #394
  • Loading branch information...
commit e82f882242ab67ac76f5d684a054287afdd34b0e 1 parent abf2662
@kriszyp authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 extensions/ColumnResizer.js
View
8 extensions/ColumnResizer.js
@@ -225,18 +225,18 @@ return declare(null, {
grid.mouseUpListen.resume();
}
);
- grid.mouseMoveListen = listen.pausable(document,
+ grid._listeners.push(grid.mouseMoveListen = listen.pausable(document,
"mousemove" + (has("touch") ? ",touchmove" : ""),
miscUtil.throttleDelayed(function(e){ grid._updateResizerPosition(e); })
- );
- grid.mouseUpListen = listen.pausable(document,
+ ));
+ grid._listeners.push(grid.mouseUpListen = listen.pausable(document,
"mouseup" + (has("touch") ? ",touchend" : ""),
function(e){
grid._resizeMouseUp(e);
grid.mouseMoveListen.pause();
grid.mouseUpListen.pause();
}
- );
+ ));
// initially pause the move/up listeners until a drag happens
grid.mouseMoveListen.pause();
grid.mouseUpListen.pause();
Please sign in to comment.
Something went wrong with that request. Please try again.