Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"bind:scrollY" scrolls page to X or 0 after mounting #11468

Closed
Black1358 opened this issue May 4, 2024 · 0 comments · Fixed by #11469
Closed

"bind:scrollY" scrolls page to X or 0 after mounting #11468

Black1358 opened this issue May 4, 2024 · 0 comments · Fixed by #11469

Comments

@Black1358
Copy link
Contributor

Describe the bug

render_effect in blind_window_scroll don't checks when value undefined

Reproduction

Just use bind:scrollY={SY} with let SY = $state() / $state(0) / $state(500)

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i3-4030U CPU @ 1.90GHz
    Memory: 765.21 MB / 7.90 GB
  Binaries:
    Node: 20.11.1 
    npm: 10.6.0 
  Browsers:
    Chrome: master_preferences
    Edge: Chromium (123.0.2420.97)
  npmPackages:
    svelte: 5.0.0-next.123 => 5.0.0-next.123

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant