Skip to content

Commit

Permalink
Fix: inview reprocess on window resize (fixes #596) (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Oct 28, 2024
1 parent 6845bf0 commit 151079f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/inview.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
process();
}
};
$(window).on('resize', wndw.resize);
// handler functions
function register(element, data, type) {
const observer = new IntersectionObserver(entries => {
Expand Down

0 comments on commit 151079f

Please sign in to comment.