smart-sections
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -570,3 +570,4 @@ 'use strict'; | ||
name: sectionName, | ||
scroll: function scroll() { | ||
scroll: function scroll(e) { | ||
if (e && typeof e.preventDefault === 'function') e.preventDefault(); | ||
window.scrollTo(0, yScrollPoint); | ||
@@ -573,0 +574,0 @@ }, |
@@ -566,3 +566,4 @@ var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; | ||
name: sectionName, | ||
scroll: function scroll() { | ||
scroll: function scroll(e) { | ||
if (e && typeof e.preventDefault === 'function') e.preventDefault(); | ||
window.scrollTo(0, yScrollPoint); | ||
@@ -569,0 +570,0 @@ }, |
{ | ||
"name": "smart-sections", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Framework agnostic, vertical scroll solution that follows what you actually read", | ||
@@ -16,3 +16,4 @@ "main": "dist/bundle.cjs.js", | ||
"scripts": { | ||
"start": "nps" | ||
"start": "nps", | ||
"prepublish": "yarn start build" | ||
}, | ||
@@ -19,0 +20,0 @@ "dependencies": { |
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
42594
1192