seamless-scroll-polyfill
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -1,2 +0,2 @@ | ||
/* smoothscroll v0.4.4 - 2018 - Dustan Kasten, Jeremias Menichelli - MIT License */ | ||
/* smoothscroll v0.4.5 - 2018 - Dustan Kasten, Jeremias Menichelli - MIT License */ | ||
(function () { | ||
@@ -329,6 +329,10 @@ 'use strict'; | ||
? arguments[0].left | ||
: typeof arguments[0] !== 'object' ? arguments[0] : 0, | ||
: typeof arguments[0] !== 'object' | ||
? arguments[0] | ||
: 0, | ||
arguments[0].top !== undefined | ||
? arguments[0].top | ||
: arguments[1] !== undefined ? arguments[1] : 0 | ||
: arguments[1] !== undefined | ||
? arguments[1] | ||
: 0 | ||
); | ||
@@ -367,7 +371,11 @@ | ||
? ~~arguments[0].left | ||
: typeof arguments[0] !== 'object' ? ~~arguments[0] : this.scrollLeft, | ||
: typeof arguments[0] !== 'object' | ||
? ~~arguments[0] | ||
: this.scrollLeft, | ||
// use top prop, second argument or fallback to scrollTop | ||
arguments[0].top !== undefined | ||
? ~~arguments[0].top | ||
: arguments[1] !== undefined ? ~~arguments[1] : this.scrollTop | ||
: arguments[1] !== undefined | ||
? ~~arguments[1] | ||
: this.scrollTop | ||
); | ||
@@ -374,0 +382,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "Smooth Scroll behavior polyfill", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"author": { | ||
@@ -8,0 +8,0 @@ "name": "Dustan Kasten", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
159789
790
0