Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #31451 from justindarc/bug1196990
Browse files Browse the repository at this point in the history
Bug 1196990 - [Music][NGA] Remove use of element.scrollIntoView()
  • Loading branch information
justindarc committed Aug 21, 2015
2 parents 54245dc + 8e1002f commit a4529c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev_apps/music-nga/elements/music-search.js
Expand Up @@ -166,7 +166,7 @@ proto.createdCallback = function() {
proto.scrollOutOfView = function() {
window.requestAnimationFrame(() => {
if (this.nextElementSibling) {
this.nextElementSibling.scrollIntoView();
window.scrollTo(0, this.nextElementSibling.offsetTop);
}
});
};
Expand Down

0 comments on commit a4529c6

Please sign in to comment.