Why would scrolling not work in Chrome only?
Solution 1
I guess this might be plugin or theme try to disable all plugins and then enable them one by one to identify the source of this problem.
See http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/
If you still having the problem try to install this plugin
https://wordpress.org/plugins/mousewheel-smooth-scroll/#description
Also take a look here
https://wordpress.org/support/topic/my-website-not-scrolling-in-chrome-browser/
Solution 2
This bug is known for ages. As a user, you can disable "threaded scrolling" or "smooth scrolling" in flags to fix it. As a webdev, there is nothing you can do.
Abe Miessler
Software Engineer who works with Javascript/Node.js, Python, C#, Go, SQL Server, MongoDB, MySQL and a whole lot more. I enjoy learning new technologies when they are the best tool for the job. I usually fill the role of a full stack engineer but always seem to enjoy working with data the most. 80th recipient of the Gold SQL badge 50th recipient of the Gold SQL Server badge Hobbies include web application security and machine learning.
Updated on June 04, 2022Comments
-
Abe Miessler almost 2 years
I recently started working on a WordPress website that someone else setup. One odd thing I have found is that if you are running Chrome you can't scroll using your mouse - only the scroll bars on the side. Scrolling seems to work fine in Firefox and Safari.
Typically when I run into a problem like this it's either caused by the
overflow
orposition
css attributes, but after poking around I don't see any occurrences of those that would cause this problem.Can anyone see why this might be happening or suggest other things to look at that might explain why it's not possible to scroll using ones mouse? Any idea why it would happen in Chrome but nothing else?
-
Sebastian Simon about 6 yearsWorks just fine for me, using my mouse. If this actually happens, either the
wheel
orscroll
events are prevented, or it’s actually a different element that is scrollable. -
Abe Miessler about 6 yearsOh that's really weird. What browser/OS were you using?
-
Sebastian Simon about 6 yearsFirefox on Ubuntu.
-
Abe Miessler about 6 yearsVery interesting. I just opened it in Safari/OSX and the scrolling does indeed work. Do you have Chrome installed? If so does it happen for you on there?
-
rpivovar about 6 yearsIt also doesn't work on Chrome OSX for me
-
Max Wolfen about 6 yearsWithout a doubt, the problem is in one of the loaded scripts. CSS is not to do with it. You can easily see this by debugging scripts of the page. As we can test, on onload wheel work correctly, but after load it fall
-
Abe Miessler about 6 years@MaxWolfen - sorry how do I test that the wheel works before the scripts load? I'm familiar with putting breakpoints in code and stuff like that but don't know how to prevent the scripts from loading at all to test.
-
LinusGeffarth about 6 yearsConfirming: macOS: Chrome does not scroll, Safari does.
-
Siguza about 6 years
plugins.min.js
seems to set amousewheel
listener onwindow
- if I remove that manually in dev tools, scrolling works again. -
Abe Miessler about 6 years@Siguza - how would I remove that using dev tools? I thought you could only do breakpoints etc?
-
Siguza about 6 years@AbeMiessler Like this.
-
tao about 6 yearsHowever, that's about the only way to remove the listener. It's an anonymous function and therefore it creates a new instance each time it is called. There is no easy way to remove it using code, as it can't be referenced. Check if the theme has a smooth scroll option and turn it off. If not, check if it has an update. I'm pretty sure other people are raging about this bug and most likely a fix has already been issued.
-
tao about 6 yearsAnother way to remove it is go inside theme minified js and remove that function altogether, but that can easily go wrong. On a different note, I'd say your question is a duplicate of this one with major difference being you haven't researched enough to realize that's what you're asking :). Cheers!
-
Joe Phillips about 6 yearsChrome doesn't allow me to use scroll wheel on any website right now. Possibly related to Logitech MX Mouse 2S. bugs.chromium.org/p/chromium/issues/detail?id=797708&desc=2
-
-
codeitram about 3 yearsIs there some fix now as I still have this issue ?