When resizing the browser window, execute "isOutOfViewport" (montage.js)

pull/4149/head
IgorA100 2024-09-23 13:41:56 +03:00 committed by GitHub
parent 563a5450fd
commit 016524b729
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -837,6 +837,7 @@ function initPage() {
document.addEventListener('scrollend', on_scroll); // for non-sticky document.addEventListener('scrollend', on_scroll); // for non-sticky
document.getElementById('content').addEventListener('scrollend', on_scroll); document.getElementById('content').addEventListener('scrollend', on_scroll);
window.addEventListener('resize', on_scroll);
} // end initPage } // end initPage
function on_scroll() { function on_scroll() {