affix-component
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -37,3 +37,3 @@ var event = require('event') | ||
this.bottom = opt.bottom || 0 | ||
this.start = opt.top ? top - opt.top : 0 | ||
this.start = opt.top ? top - opt.top : null | ||
this.top = opt.top || top | ||
@@ -80,3 +80,3 @@ this.setOrigin() | ||
} | ||
else if (this.start && y > this.start) { | ||
else if (this.start != null && y > this.start) { | ||
this.setHolder() | ||
@@ -83,0 +83,0 @@ assign(styleObj, { |
{ | ||
"name": "affix-component", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "fix element when page scroll", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9268