@dreamworld/web-util
Advanced tools
Comparing version 1.4.5-refactor-scrollintoview.2 to 1.4.5
@@ -13,2 +13,2 @@ | ||
return d.textContent; | ||
} | ||
} |
{ | ||
"name": "@dreamworld/web-util", | ||
"version": "1.4.5-refactor-scrollintoview.2", | ||
"version": "1.4.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,3 +15,4 @@ /** | ||
export const scrollIntoView = (scrollingElement, element, bottom = false, offsetTop = 0, offsetBottom = 0) => { | ||
const intersectionCallback = (entries) => { | ||
const intersectionCallback = (entries) => { | ||
intersectionInstance && intersectionInstance.disconnect(); | ||
@@ -21,3 +22,3 @@ intersectionInstance = null; | ||
entries.forEach(entry => { | ||
if (entry.intersectionRatio == 1) { | ||
if (entry.intersectionRatio > 0.9) { | ||
return; | ||
@@ -39,3 +40,2 @@ } else { | ||
} | ||
} | ||
@@ -42,0 +42,0 @@ }); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
14015