-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
doc: remove scroll up when highlighting text #53594
Comments
@nodejs/documentation (The documentation team) |
I just want to select text on the page. |
I see the issue you are describing, but your issue is asking to split the docs like React. if you have an issue with the scrolling, please dedicate an issue directly to that. |
A fix for the behavior you described is underway |
Oh, thank you! So, people already submitted a PR for node 22 and 17, and are waiting for review. P.S. It is fun that backend docs site suffer from pesky CSS bugs :D |
Yes. If the browser were to just scroll the target to the top, like it usually would, it would end up behind the header. This padding basically tells the browser that the visible region starts a bit further down, so scrolling things into view works as expected. |
I've closed this issue, as I think it's been resolved by a PR, if that's not the case, let me know and I'll reopen the issue. |
Affected URL(s)
https://nodejs.org/docs/latest/api/stream.html
Description of the problem
Hello!
I have experienced a bug with docs:
When I try to select a code snippet, the scrolling goes up very fast.
Highlight any text with mouse:
Current result: it selects unwanted information above the highlighted part of text, because of excessive scrolling up.
Expected result: It only selects the highlighted text.
This decreases the usability of the docs significantly, because I can only read them, and cannot reliably copy any text I want to select.
Such problem does not exist in react docs.
But in node.js it does exist, and such inconsistency is unacceptable UX.
Suggesting: Node.js do have a very large pages. Maybe it will be better to split them into smaller sections for better usability.
System:
OS: Windows 10 Home 22H2 (OS build 19045.4529)
Browser: Chrome Version 126.0.6478.116 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: