-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Glitchy scroll on mobile #1155
Comments
@SimenB I can reproduce the above using iPhone X / 7 (both are Chrome 71) / Firefox desktop mobile mode (since I dont have Pixel3 at hand) but using different steps. So here is what I do to reproduce the gif linked for redux.js.org
Do you think it is similar? |
@endiliey The issue has nothing do with Scroll, The Issue is actually <nav class="onPageNav"></nav> element has no child element in it, and also <div class="tocToggler" id="tocToggler">
<i class="icon-toc"></i>
</div> is present in the DOM, and beacause of that when someone Clicks on it(#tocToggler) toggles toActive class and it applies bellow CSS @media only screen and (max-width: 1023px){
.tocActive .onPageNav {
background: #fff;
bottom: 0;
display: block;
left: 0;
overflow-y: auto;
-ms-scroll-chaining: none;
overscroll-behavior: contain;
padding: 0 20px;
position: fixed;
right: 0;
top: 148px;
z-index: 10;
}
} which renders the White layout on top of the main container, hence the issue is happening when there is not child element in <nav class="onPageNav">. 1.See onNavPage has no child Element.
I would like to solve the issue, but I want to know what will be expected behavior. One solution I can think of is to not to render the <div class="tocToggler" id="tocToggler"> if <nav class="onPageNav"> has no child element in it . Please let me know if my approach is correct. |
Yes. Do you want to send a PR ? 🔥🔥🔥 I think that’s what this issue is about. |
Yes, I will send a PR ASAP for both. |
🐛 Bug Report
Scrolling quickly up and down with a menu open on mobile shows the underlying content at the bottom of the viewport. See reduxjs/redux#3292, but this is reproducible on Docusaurus' own website
Have you read the Contributing Guidelines on issues?
Yup
To Reproduce
(Write your steps here:)
Expected behavior
No glitching
Actual Behavior
See gif on linked issue.
Reproducible Demo
This project's own website reproduces for me.
(Paste the link to an example repo, including a
siteConfig.js
, and exact instructions to reproduce the issue.)The text was updated successfully, but these errors were encountered: