-
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: html of api doesn't allow scrolling past larger code blocks on mobile safari #5861
Comments
@nodejs/documentation @nodejs/website |
I don't have an IOS device to test, but the only thing I can think of is Edit: nope that'd cause the text to flow outside the pre. |
@silverwind it makes the text go outside the |
Adding * {
-webkit-overflow-scrolling: touch;
} seems to fix the issue. |
Would it be better if we set a pre.sh_sourceCode {
max-height: 400px;
} That way it lets the user still navigate the page can panning out of the code. We can target this to the smaller screen resolutions. |
So, if I understand correctly, the issue is that the It's probably worth investigating if and how http://devdocs.io/node/ solves this issue. |
@silverwind I'm gonna try that. |
I think wrapping |
It works. |
Momentum scrolling gives a better scrolling experience though :) |
@silverwind it is, but now that I've tried both with and without momentum scrolling I can say that it's a lot better with it on. I don't know if http://devdocs.io has momentum scrolling enabled but their scrolling works better than ours with Anyway I don't mind, I'm fine with using |
I would say let's use both momentum scrolling and |
Go for it. It's a big improvement to Android too in terms of readability. If momentum-scrolling causes no side-effects, it's probably fine. I think it has been suggested before too. Some other related suggestions:
Here's Android with |
@silverwind the pound sign (#) is very small also on the iPhone, I will investigate as soon as I can get back to my MacBook. |
Fixes an issue that prevented scrolling from going past large code blocks on iOS devices. Fixes: nodejs#5861 PR-URL: nodejs#5878
Fixes an issue that prevented scrolling from going past large code blocks on iOS devices. Also fixes a few minor styling issues that came up in the discussion. Fixes: #5861 PR-URL: #5878 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Lindstädt <[email protected]>
Fixes an issue that prevented scrolling from going past large code blocks on iOS devices. Also fixes a few minor styling issues that came up in the discussion. Fixes: #5861 PR-URL: #5878 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Lindstädt <[email protected]>
Fixes an issue that prevented scrolling from going past large code blocks on iOS devices. Also fixes a few minor styling issues that came up in the discussion. Fixes: #5861 PR-URL: #5878 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Lindstädt <[email protected]>
Fixes an issue that prevented scrolling from going past large code blocks on iOS devices. Also fixes a few minor styling issues that came up in the discussion. Fixes: #5861 PR-URL: #5878 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Lindstädt <[email protected]>
Fixes an issue that prevented scrolling from going past large code blocks on iOS devices. Also fixes a few minor styling issues that came up in the discussion. Fixes: #5861 PR-URL: #5878 Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Lindstädt <[email protected]>
doc
users on iPhones cannot scroll past larger code blocks. It looks like a redrawing issue, since browser likely knows the correct size of the whole page.
In the screen that you see me trying to moving up or down, white not having a scroll handle outside of the code block any more
ref nodejs/docs#92 (closes nodejs/docs#92)
The text was updated successfully, but these errors were encountered: