Fixed: bind:scroll resets scroll state

pull/11469/head
Black1358 2 years ago
parent f2f71ae3a1
commit 12a278fc0d

@ -32,7 +32,7 @@ export function bind_window_scroll(type, get_value, update) {
};
render_effect(() => {
latest_value = get_value() || 0;
latest_value = (get_value() ?? window[is_scrolling_x ? 'scrollX' : 'scrollY']) || 0;
if (!scrolling) {
scrolling = true;
clearTimeout(timeout);

Loading…
Cancel
Save