fix test failed about scroll-into-view (#11789)

This commit is contained in:
Masahiro Wakame 2016-10-07 02:16:25 +09:00 committed by Mohamed Hegazy
parent 67522ee64b
commit 4f1ec2ec0e
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ scrollIntoView(someElement);
scrollIntoView(someElement, {
time: 500, // half a second
ease: function(value){
return Math.pow(value,2) - value); // Do something weird.
return Math.pow(value,2) - value; // Do something weird.
},
validTarget: function(target, parentsScrolled){
return parentsScrolled < 2 && !target.matches('.dontScroll');

View File

@ -1,6 +1,6 @@
// Type definitions for scroll-into-view 1.6.0
// Project: https://github.com/KoryNunn/scroll-into-view
// Definitions by: zivni https://github.com/zivni
// Definitions by: zivni <https://github.com/zivni>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module __ScrollIntoView {