react-on-screen
react-on-screen copied to clipboard
Check if a react component in the viewport
Due to some the scroll is not on document in my app, it's on a element and because of this visibility is not setting true of it's child elements.
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. Changelog Sourced from websocket-extensions's changelog. 0.1.4 / 2020-06-02 Remove a ReDoS vulnerability in the header parser (CVE-2020-7662, reported by Robert McLaughlin) Change license from...
The TrackVisibility component does not display its children on scroll or resize when the browser is zoomed out to 90%, 80% or 67%. The component works fine when zoomed out...
I check the props through console.log (props.isVisible) and it only returns true when there is a scroll event. Also on the screen when reloading the website is always false
See https://github.com/lodash/lodash/issues/3838 If two lodash per-method packages, e.g. `lodash.throttle` and `lodash.debounce`, depend on an underlying lodash function (public or internal API), that function will be inlined in each of the...
Is it possible to set isVisible to true using Jest? I want to be able to test whether my function is being called when the element is visible. Setting the...
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2. Commits - [`754f0c2`](https://github.com/jonschlinkert/mixin-deep/commit/754f0c20e1bc13ea5a21a64fbc7d6ba5f7b359b9) 1.3.2 - [`90ee1fa`](https://github.com/jonschlinkert/mixin-deep/commit/90ee1fab375fccfd9b926df718243339b4976d50) ensure keys are valid when mixing in values - See full diff in [compare view](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2) Maintainer changes This...
fix #55 I also added `babel-plugin-lodash` so that there's low risk of anyone importing additional lodash methods in an inefficient way in the future. But if you want me to...
Added a withFocus prop and EventListener which detects if the document has focus. This can then be used to ensure isVisible tracking only happens when the user is looking at...