Closed luin closed 5 months ago
Good day @luin :)
Nice catch! I've published v2.7.3
which uses { preventScroll: true }
when focusing the viewport.
@KingSora Thanks a lot! That's the fastest response and fix I've ever experienced on GitHub in the past 10 years 😄
@luin Since I'm often slowed down by these processes as well, I'm trying to lead by example in my own repositories.. Its not always possible but whenever it is I'm trying
Glad I could help :)
Describe the bug
If I have a element that is:
The page would scroll unexpectedly if I make the element an instance of OverlayScrollbars.
To Reproduce
Expected behavior
The page should not be scrolled. The editor is focused with
preventScroll: true
. It's unexpected that creating aOverlayScrollbars
would scroll the page.Environment
Additional context
I believe to fix the issue, we should pass
preventScroll: true
infocusElm
because we only want to focus instead of scrolling.