Browse Source

Currently in IE9 dragging an element does select the text because document.selection.empty() does fire to early. Adding the timeout fixes this problem.

pull/902/head
anerth 9 years ago
parent
commit
5c7a897e27
  1. 7
      Sortable.js
  2. 2
      Sortable.min.js

7
Sortable.js

@ -401,8 +401,11 @@
}
try {
if (document.selection) {
document.selection.empty();
if (document.selection) {
// Timeout neccessary for IE9
setTimeout(function () {
document.selection.empty();
});
} else {
window.getSelection().removeAllRanges();
}

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save