react-scroll
Advanced tools
Comparing version 1.7.10 to 1.7.11
@@ -30,3 +30,3 @@ 'use strict'; | ||
var scrollOffset = function scrollOffset(c, t) { | ||
return c === document ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset) : getComputedStyle(c).position === "relative" ? t.offsetTop : t.getBoundingClientRect().top + c.scrollTop; | ||
return c === document ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset) : getComputedStyle(c).position !== "static" ? t.offsetTop : t.getBoundingClientRect().top + c.scrollTop; | ||
}; | ||
@@ -33,0 +33,0 @@ |
{ | ||
"name": "react-scroll", | ||
"version": "1.7.10", | ||
"version": "1.7.11", | ||
"description": "A scroll component for React.js", | ||
@@ -5,0 +5,0 @@ "main": "modules", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100273