GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — doc: fix issues related to page scrolling by silverwind · Pull Request #6641 · nodejs/node Conversation
|
|
@nodejs/website @nodejs/documentation Is the JS "hack" too much? While I think it's pretty solid, I think that at this point I'm ok with removing it if someone has concerns about it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Just general ones. Haven't made it to review yet. If you can avoid it it would be better.... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Since it is using vanilla and well supported JS, I'd be okay with having this now and hopefully removing this later. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
If you go this route, may I suggest to throttle the listener to avoid horrible perfs janks?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The handler is pretty lightweight, I don't think it could cause any janks, except on maybe ancient hardware.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Isn't it still good practice to throttle it regardless?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Depends on the use case. With throttling, some events won't get cancelled which results in scroll ticks going through. That's not something I want in this case, so every event would have to be cancelled.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Hmm, I think I'll drop the JS after all. It was just one user complaining about it, while probably more people agree to let the browser handle scrolling. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Moved the sidebar to a fixed position and moved the positioning of the main content to the page's body, which results in back/forward navigation through hash links and search highlight working again. Fixes: nodejs#6637 Based on: nodejs#5716
|
Okay, CSS only change now to fix two issues. Please review! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've tested this on Chrome and mobile Safari, all good 👍 . |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM then |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Moved the sidebar to a fixed position and moved the main column to the page's body, which results in back/forward navigation through hash links and search highlight working again. Fixes: #6637 Fixes: #6751 Based on: #5716 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Robert Lindstaedt <[email protected]>
|
Landed in bef1ec0. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
doc: search indicators missing
There was an error while loading. Please reload this page.