mirror of
https://github.com/glanceapp/glance.git
synced 2024-12-15 01:22:37 +03:00
Fix registering resize event on wrong object
This commit is contained in:
parent
d18f645c18
commit
d1be4637ad
@ -59,7 +59,7 @@ function setupCarousels() {
|
||||
const determineSideCutoffsRateLimited = throttledDebounce(determineSideCutoffs, 20, 100);
|
||||
|
||||
itemsContainer.addEventListener("scroll", determineSideCutoffsRateLimited);
|
||||
document.addEventListener("resize", determineSideCutoffsRateLimited);
|
||||
window.addEventListener("resize", determineSideCutoffsRateLimited);
|
||||
|
||||
afterContentReady(determineSideCutoffs);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user