fix: skip initial handleScrollFocus call to prevent position override
Remove immediate handleScrollFocus() call in initScrollFocus(). Only actual user scroll events will trigger position saving now.
This commit is contained in:
@@ -159,8 +159,6 @@ function initScrollFocus() {
|
||||
|
||||
scrollView.removeEventListener("scroll", handleScrollFocus);
|
||||
scrollView.addEventListener("scroll", handleScrollFocus);
|
||||
|
||||
handleScrollFocus();
|
||||
}
|
||||
|
||||
function handleScrollFocus() {
|
||||
|
||||
Reference in New Issue
Block a user