janosh / svelte-toc

Sticky responsive table of contents component
https://janosh.github.io/svelte-toc
MIT License
113 stars 6 forks source link

Prevents scroll when using smart zoom on macOS #22

Closed oskar-gmerek closed 2 years ago

oskar-gmerek commented 2 years ago

Hi,

When using smart zoom (double-taped mouse) svelte-toc prevents scrolling down to the bottom of the page. The scroll position jumps up when the active header should change instead of scrolling down and changing the active header in svelte-toc.

https://user-images.githubusercontent.com/53402105/189860612-ca691cce-c878-4573-8e13-0c16083b1801.mov

I also find out, that if I do not wrap with a fixed position wrapper, then svelte-toc prevents scrolling the page more than the height of the ToC component.

janosh commented 2 years ago

Oops, that's embarrassing. Thanks for reporting! 👍