Listen to resize events and check revealed (#2780)

This commit is contained in:
Alexander Kulikov 2024-08-29 21:01:13 +03:00 committed by GitHub
parent 2855c2c24e
commit 324ee19377
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2506,6 +2506,7 @@ var htmx = (function() {
windowIsScrolling = true
}
window.addEventListener('scroll', scrollHandler)
window.addEventListener('resize', scrollHandler)
setInterval(function() {
if (windowIsScrolling) {
windowIsScrolling = false