vimium
vimium copied to clipboard
Pagination does not always occur with the active window
Describe the bug Pagination does not always occur with the active window (document.activeelement).
Include a screenshot if applicable.

To Reproduce Steps to reproduce the behavior:
- Go to URL 'https://www.nytimes.com/2022/05/31/us/america-grief-life.html'
- Using Vimium, click on 'Read Comments' (at bottom of article)
- Using Vimium, click on 'Reader Picks'
- Using Vimium, scroll page up / down.
- Notice it is the underlying article that is scrolled, and not the comments itself.
Browser and Vimium version Chrome browser Vimium version 1.67
If you're using Chrome, include the Chrome and OS version found at chrome://version. Also include the Vimium version found at chrome://extensions.
| Google Chrome | 102.0.5005.61 (Official Build) (arm64) |
|---|---|
| Revision | 0e59bcc00cc4985ce39ad31c150065f159d95ad3-refs/branch-heads/5005@{#819} |
| OS | macOS Version 12.4 (Build 21F79) |
| JavaScript | V8 10.2.154.4 |
| User Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36 |
Some tricks in https://github.com/philc/vimium/issues/3760#issuecomment-812882124 can work it around. And #4016 may be a usable solution.
I found that Vimium doesn't seem to catch focus events I'm generating from devtools or extensions like so:
document.getElementsByClassName('page-content')[0].focus()
on this web page for example. This focus event works to scroll content with the arrow keys but not Vimium.