Socket
Socket
Sign inDemoInstall

intersection-observer-admin

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.10 to 0.2.11

5

dist/es/index.js

@@ -166,2 +166,4 @@ var __extends = (this && this.__extends) || (function () {

* IntersectionObserver callback when element is intersecting viewport
* either when `isIntersecting` changes or `intersectionRadio` crosses on of the
* configured `threshold`s.
*

@@ -184,3 +186,4 @@ * @method onIntersection

// first determine if entry intersecting
if (isIntersecting || intersectionRatio > threshold) {
// https://www.w3.org/TR/intersection-observer/#update-intersection-observations-algo
if (isIntersecting || intersectionRatio >= threshold) {
if (matchingRootEntry) {

@@ -187,0 +190,0 @@ matchingRootEntry.elements.some(function (element) {

@@ -257,2 +257,4 @@ var Registry = /** @class */ (function () {

* IntersectionObserver callback when element is intersecting viewport
* either when `isIntersecting` changes or `intersectionRadio` crosses on of the
* configured `threshold`s.
*

@@ -275,3 +277,4 @@ * @method onIntersection

// first determine if entry intersecting
if (isIntersecting || intersectionRatio > threshold) {
// https://www.w3.org/TR/intersection-observer/#update-intersection-observations-algo
if (isIntersecting || intersectionRatio >= threshold) {
if (matchingRootEntry) {

@@ -278,0 +281,0 @@ matchingRootEntry.elements.some(function (element) {

@@ -263,2 +263,4 @@ (function (global, factory) {

* IntersectionObserver callback when element is intersecting viewport
* either when `isIntersecting` changes or `intersectionRadio` crosses on of the
* configured `threshold`s.
*

@@ -281,3 +283,4 @@ * @method onIntersection

// first determine if entry intersecting
if (isIntersecting || intersectionRatio > threshold) {
// https://www.w3.org/TR/intersection-observer/#update-intersection-observations-algo
if (isIntersecting || intersectionRatio >= threshold) {
if (matchingRootEntry) {

@@ -284,0 +287,0 @@ matchingRootEntry.elements.some(function (element) {

2

dist/types/index.d.ts

@@ -76,2 +76,4 @@ import Notifications from './notification';

* IntersectionObserver callback when element is intersecting viewport
* either when `isIntersecting` changes or `intersectionRadio` crosses on of the
* configured `threshold`s.
*

@@ -78,0 +80,0 @@ * @method onIntersection

{
"name": "intersection-observer-admin",
"version": "0.2.10",
"version": "0.2.11",
"description": "Intersection Observer Admin for better performance",

@@ -5,0 +5,0 @@ "main": "dist/intersection-observer-admin.umd.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc