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

Prevent scrolling the Name column into view when focusing rows in tables #180

Merged

Conversation

jpovixwm
Copy link
Contributor

Fixes #179

For browsers that don't support this option, it is technically possible to prevent the scroll by restoring the scrollLeft property after calling .focus(), but this needs to be done on the .torrent-table-rows div, which is two .parentNodes above.
I don't really think that's necessary, so I didn't do it.

@qu1ck qu1ck force-pushed the gh-179-prevent-scroll-on-row-focus branch from eccebc1 to 2d347d5 Compare March 21, 2024 16:22
@qu1ck qu1ck merged commit 0f4a772 into openscopeproject:master Mar 21, 2024
3 checks passed
@qu1ck
Copy link
Member

qu1ck commented Mar 21, 2024

Thanks

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 this pull request may close these issues.

Focusing a row scrolls the name cell into view
2 participants