Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add document mousemove and mouseup listeners to the list of listeners to... #395

Merged
merged 1 commit into from

2 participants

Kris Zyp SitePenKenFranqueiro
Kris Zyp
Collaborator

... be removed on destroy, fixes #394

SitePenKenFranqueiro SitePenKenFranqueiro merged commit e82f882 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 21, 2013
  1. Kris Zyp

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

    kriszyp authored
    … to be removed on destroy, fixes #394
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 extensions/ColumnResizer.js
8 extensions/ColumnResizer.js
View
@@ -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();
Something went wrong with that request. Please try again.