chore: tidy up scrolling code logic (#11630)

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/11634/head
adiGuba 2 months ago committed by GitHub
parent 87a420f64d
commit 6f28e41b6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -33,9 +33,7 @@ export function bind_window_scroll(type, get_value, update) {
render_effect(() => {
latest_value = get_value();
if (latest_value === undefined) return;
if (!scrolling) {
if (!scrolling && latest_value != null) {
scrolling = true;
clearTimeout(timeout);
if (is_scrolling_x) {

Loading…
Cancel
Save