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

Docs scrolling issue #2711

Closed
andrew-sol opened this issue Feb 5, 2022 · 7 comments
Closed

Docs scrolling issue #2711

andrew-sol opened this issue Feb 5, 2022 · 7 comments

Comments

@andrew-sol
Copy link

andrew-sol commented Feb 5, 2022

There's some scrolling issue with the docs website in Chrome, Mac M1. Whenever I try to scroll the page down it jumps back to the top. I tried in incognito and with all extensions disabled. Tried clearing cache and hard reloading.

The bug is present on any docs page. For example this one:
https://mikro-orm.io/docs/installation/

It does not happen in Safari though. Also works fine in Chome if I disable JavaScript.

Chrome version 98.0.4758.80 (Official Build) (arm64)

@B4nan
Copy link
Member

B4nan commented Feb 5, 2022

I am on M1 mac too, I don't see any problem, even after upgrading to chrome 98 🤷 .

@B4nan B4nan closed this as completed Feb 5, 2022
@andrew-sol
Copy link
Author

You were very helpful, thanks. Ha-ha :)

Okay, it still means that there is some bullshit in your scripts, cuz my browser works well with any other page on the internet. And I won't be debugging your minified code to find out what's going on there.

When I paste this script into the console the problem goes away:

window.addEventListener('scroll', function(event) {
    event.stopImmediatePropagation();
}, true);

I made this script to run automatically on every page on your docs website and now I'm happy.

@B4nan
Copy link
Member

B4nan commented Feb 5, 2022

Some bullshit in my scripts you say? Interesting you are the only person having this problem.

@andrew-sol
Copy link
Author

Sorry, I didn't want to offend you in any way. I appreciate your work. Just wanted to point out that something is messing up with the scroll there.

@andrew-sol
Copy link
Author

Can confirm that the issue has gone btw.

I think it was related to this one facebook/docusaurus#6587

@pepakriz
Copy link
Contributor

pepakriz commented Feb 6, 2022

I was facing the same issue on Intel (so not related to M1) and now everything is OK.

@B4nan
Copy link
Member

B4nan commented Feb 6, 2022

I did downgrade to beta 14 yesterday, not really because of this, more like because of the new API docs that are not yet compatible with beta 15.

@andrew-sol andrew-sol changed the title Docs scrolling issue in Chrome (Mac M1) Docs scrolling issue Feb 7, 2022
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

No branches or pull requests

3 participants