intersection-observer-admin
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -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) { |
@@ -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
111370
1448