Skip to content

Commit

Permalink
Merge pull request SortableJS#923 from Rendalf/IE11-Pointer-Events
Browse files Browse the repository at this point in the history
IE-11 pointer events
  • Loading branch information
RubaXa authored Aug 8, 2016
2 parents 7194499 + 3003909 commit 1a0e0aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@

supportDraggable = !!('draggable' in document.createElement('div')),
supportCssPointerEvents = (function (el) {
// false when IE11
if (!!navigator.userAgent.match(/Trident.*rv[ :]?11\./)) {
return false;
}
el = document.createElement('x');
el.style.cssText = 'pointer-events:auto';
return el.style.pointerEvents === 'auto';
Expand Down
Loading

0 comments on commit 1a0e0aa

Please sign in to comment.