@expressen/tallahassee
Advanced tools
Comparing version 16.0.0 to 16.0.1
@@ -18,2 +18,13 @@ "use strict"; | ||
const eventHandlers = []; | ||
function addEventHandler(handler) { | ||
if (eventHandlers.length === 0) { | ||
browser.window.addEventListener("scroll", () => { | ||
eventHandlers.forEach((fn) => fn()); | ||
}); | ||
} | ||
eventHandlers.push(handler); | ||
} | ||
class IntersectionObserver { | ||
@@ -27,3 +38,3 @@ constructor(viewportUpdate, options) { | ||
browser.window.addEventListener("scroll", () => { | ||
addEventHandler(() => { | ||
const entries = this[kToObserve].map((el) => new IntersectionObserverEntry(el, this[kRootMargin])); | ||
@@ -30,0 +41,0 @@ const changedEntries = entries.filter((entry) => { |
{ | ||
"name": "@expressen/tallahassee", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"description": "Lightweight client testing framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
132284
4033