Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zenzen-sol committed Nov 25, 2019
2 parents e4b4911 + 35515df commit 5ba9497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/services/scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export default Service.extend({
},

getScrollTo(container) {
// if scrollTo is a function, it's most likely the window
if (typeof container.scrollTo === 'function') {
// Check if container is the window
if (container.self === window) {
return container.scrollTo;
// otherwise it's an element
} else {
Expand Down

0 comments on commit 5ba9497

Please sign in to comment.