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. 3
      Sortable.js
  2. 2
      Sortable.min.js

3
Sortable.js

@ -402,7 +402,10 @@
try { try {
if (document.selection) { if (document.selection) {
// Timeout neccessary for IE9
setTimeout(function () {
document.selection.empty(); 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