@dreamworld/web-util
Advanced tools
Comparing version 1.4.6 to 1.4.7-development.1
{ | ||
"name": "@dreamworld/web-util", | ||
"version": "1.4.6", | ||
"version": "1.4.7-development.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,5 +14,9 @@ /** | ||
*/ | ||
export const scrollIntoView = (scrollingElement, element, bottom = false, offsetTop = 0, offsetBottom = 0) => { | ||
const intersectionCallback = (entries) => { | ||
export const scrollIntoView = (scrollingElement, element, bottom = false, offsetTop = 0, offsetBottom = 0) => { | ||
if (!scrollingElement || !element) { | ||
console.warn('scrollIntoView: scrollingElement or element is not provided.'); | ||
return; | ||
} | ||
const intersectionCallback = (entries) => { | ||
intersectionInstance && intersectionInstance.disconnect(); | ||
@@ -19,0 +23,0 @@ intersectionInstance = null; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
14430
272
2