mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-03 07:45:21 +00:00
Listen to resize events and check revealed (#2780)
This commit is contained in:
parent
2855c2c24e
commit
324ee19377
@ -2506,6 +2506,7 @@ var htmx = (function() {
|
|||||||
windowIsScrolling = true
|
windowIsScrolling = true
|
||||||
}
|
}
|
||||||
window.addEventListener('scroll', scrollHandler)
|
window.addEventListener('scroll', scrollHandler)
|
||||||
|
window.addEventListener('resize', scrollHandler)
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
if (windowIsScrolling) {
|
if (windowIsScrolling) {
|
||||||
windowIsScrolling = false
|
windowIsScrolling = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user