diff --git a/src/smoothscroll.js b/src/smoothscroll.js index 1d21e54..2b3452d 100644 --- a/src/smoothscroll.js +++ b/src/smoothscroll.js @@ -158,6 +158,10 @@ function polyfill() { function findScrollableParent(el) { var isBody; + if (el === d.body) { + return el; + } + do { el = el.parentNode;