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

Cursor scrolls entire page when followed #1541

Open
NyuBlara opened this issue Apr 22, 2024 · 0 comments
Open

Cursor scrolls entire page when followed #1541

NyuBlara opened this issue Apr 22, 2024 · 0 comments

Comments

@NyuBlara
Copy link

This is less of an issue report and more of a small feature request.

When a cursor is followed, it calling scrollIntoView() scrolls, not just the OSMD container, but every one of its scrollable parent elements as well. In turn, when OSMD is used only within a smaller div in the page, this div is forcefully scrolled into view every time the cursor moves. This process happens outside of any event bubbling and is thus not preventable to my knowledge.

It would be nice to be able to toggle this behavior on or off, i.e. make it so the cursor only scrolls, at most, the OSMD container, leaving the rest of the page to scroll away from it if needed.

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

No branches or pull requests

1 participant