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 { try {
if (document.selection) { if (document.selection) {
document.selection.empty(); // Timeout neccessary for IE9
setTimeout(function () {
document.selection.empty();
});
} else { } else {
window.getSelection().removeAllRanges(); window.getSelection().removeAllRanges();
} }

2
Sortable.min.js vendored

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