react-scroll
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -101,3 +101,4 @@ "use strict"; | ||
propTypes: { | ||
to: React.PropTypes.string.isRequired | ||
to: React.PropTypes.string.isRequired, | ||
offset: React.PropTypes.number | ||
}, | ||
@@ -187,4 +188,6 @@ getDefaultProps: function() { | ||
if(y >= top && y <= height && __activeLink != to) { | ||
var offsetY = y - self.props.offset; | ||
if(offsetY >= top && offsetY <= height && __activeLink != to) { | ||
__activeLink = to; | ||
@@ -191,0 +194,0 @@ |
{ | ||
"name": "react-scroll", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "A scroll component for React.js", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
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
8924
221