Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Why does scroll jump to last css snapped element?

$
0
0

I am making project in SvelteKit, but I'm fairly sure this is going to happen in vanilla all the same. Since that context and working example is important here, Here's minimal reproduction instead of code snippet: Reproduction

Description of the issue:

The viewport will jump to last snapped element when clicked on accordion item at the bottom of the page.To test:

  1. Use Chromium based browser
  2. mouse grab scrollbar from top and quickly move to the bottom
  3. click accordion item

The viewport will jump to last snapped div.

Any ideas how to prevent that? Firefox is fine.


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>