Skip to content

Commit

Permalink
IE9+ patch for dragdrop component
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Pouncey committed Jun 27, 2011
1 parent 7f9fcae commit aff3651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dragdrop/dragdrop.js
Expand Up @@ -1173,8 +1173,8 @@
if (this.dropTargets) {
this._mousePos = { x: e.pageX, y: e.pageY };
}
// check for IE mouseup outside of page boundary
if(_ie && e.nativeEvent.button == 0) {
// check for mouseup outside of page boundary in IE with document mode less than 9
if(_ie && e.nativeEvent.button == 0 && !(document.documentMode >= 9)) {
this._releaseElement(e);
return false;
};
Expand Down

0 comments on commit aff3651

Please sign in to comment.