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:
parent
27f85cd913
commit
643ba56768
@ -159,8 +159,6 @@ function initScrollFocus() {
|
|||||||
|
|
||||||
scrollView.removeEventListener("scroll", handleScrollFocus);
|
scrollView.removeEventListener("scroll", handleScrollFocus);
|
||||||
scrollView.addEventListener("scroll", handleScrollFocus);
|
scrollView.addEventListener("scroll", handleScrollFocus);
|
||||||
|
|
||||||
handleScrollFocus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleScrollFocus() {
|
function handleScrollFocus() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user