question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mousewheel scroll stopped working

See original GitHub issue

NWJS Version : 0.35.1-sdk (I believe I saw it on 0.34.x versions as well) Operating System : Windows 10 x64

The issue: (using an app I’m writing) sometimes the “mousewheel scroll” stops working for no apparent reason. Scrolling the wheel on my mouse doesn’t do anything.

Some notes/debugging:

  • I can still scroll using window.scrollTo()
  • I can still scroll dragging the scrollbar
  • manually adding a $(document).on('wheel', (e) => console.log(e)) does report wheel scrolls, but nw itself doesn’t seem to see or act on it. The document doesn’t scroll. It is not defaultPrevented either.
  • I don’t use any kind of ‘wheel’ event modification in my code.
  • I was able to fix it with a ‘wheel click’ (also know as middle-click) to scroll the document with only the mouse dragging. After that, the scroll wheel worked again.
  • I do have a lot “dom-banging” (I believe it’s called that) in my app, using entire pages .show() and .hide(), as well as a fairly good amount of .append(), all using jQuery. Dunno if that’s relevant.

Steps to reproduce: sorry, no idea. It happens randomly, maybe once every 10 hours of using nwjs, or even every 20 hours. Not often though.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
TheRealDannyyycommented, Jan 2, 2019

I think this is a Chromium issue, it happens quite frequently when using sites like Twitter. For some reason pressing the mouse wheel button fixes it but the cause is still unknown, as far as I know.

0reactions
stale[bot]commented, Mar 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix It When Your Mouse Scroll Is Not Working
Causes of Mouse Wheel Not Scrolling ... When the mouse won't scroll, there are two issues that most commonly cause it. The first...
Read more >
How to Fix it When Your Mouse Scroll is Not Working
The most typical causes of a mouse that will not scroll are two difficulties. The first is that dust and grime clog the...
Read more >
How to Fix the Wheel on My Mouse if It's Not Working
In the Mouse Properties window, select the Wheel tab. Then, try adjusting the number of lines to scroll the mouse or changing the...
Read more >
Methods to Solve Mouse Scroll Wheel Not Working in ...
The article describes the various techniques that can help users get rid of the scroll wheel issues in their mouse using basic troubleshooting....
Read more >
Mouse Scroll Wheel Not Working [SOLVED]
Your mouse scroll wheel may stop working if you are using the wrong mouse driver or it's out of date. So you should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found