Skip to content

Commit

Permalink
Merge pull request SortableJS#1647 from pangjian/master
Browse files Browse the repository at this point in the history
Fix(utils): Chrome < 44 not support scrollingElement
  • Loading branch information
owen-m1 authored Dec 16, 2019
2 parents 9147af9 + ba2eabd commit bce4a8f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,12 @@ function find(ctx, tagName, iterator) {


function getWindowScrollingElement() {
if (IE11OrLess) {
return document.documentElement;
let scrollingElement = document.scrollingElement;

if (scrollingElement) {
return scrollingElement
} else {
return document.scrollingElement;
return document.documentElement
}
}

Expand Down

0 comments on commit bce4a8f

Please sign in to comment.