scrollmonitor
scrollmonitor copied to clipboard
A simple and fast API to monitor elements as you scroll
On SSR apps specially, those which do not use webpack, window is undefined, REFERENCE ERROR would be thrown to avoid reference errors in SSR apps this check will be helpful...
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...
Since setting `window.scrollMonitor = scrollMonitor;` outside `if(isInBrowser)` it will break when trying to add the package in SSR-mode. Currently testing on Nuxt (Vue SSR). Another thing which might just me...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.5 to 1.14.8. Commits 3d81dc3 Release version 1.14.8 of the npm package. 62e546a Drop confidential headers across schemes. 2ede36d Release version 1.14.7 of the npm package. 8b347cb...
Hi All, Getting some warnings with latest version (1.2.8) like below (not pasted the entire error) Is this related to any configurational problems? How to solve this? WARNING in ./node_modules/scrollmonitor/dist/index.js...
# Summary Hey! Seems the recent changes in version `1.2.7` broke regular non-ESM consumers: https://github.com/stutrek/scrollmonitor/commit/e7dbd0f3e9f48e95b9a9815a0790a5eb7c81cf34#diff-3d2b59189eeedc2d428ddd632e97658fe310f587f7cb63b01f9b98ffc11c0197R1 Current workaround is to pin `1.2.6`.
The Intersection Observer API provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport. Would be...
Initialising a monitor on DomContentLoaded the state is correctly identified in stateChange. However, adding a callback for fullyEnterViewport is also triggered for each item. I would have expected that to...
In home page working fine. But other pages I got this issue. How can I fix it? `Uncaught TypeError: Cannot read property 'nodeName' of null at o.recalculateLocation (app.min.js?ver=1.0:5) at new...
Im having issues with scrollMonitor and Turbolinks. On initial load the scrollMonitor watchers work and fire correctly but after visiting another page they cease to work. I initially used the...