Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dreamworld/web-util

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/web-util - npm Package Compare versions

Comparing version 1.4.5-refactor-scrollintoview.2 to 1.4.5

2

htmlToText.js

@@ -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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc