vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Pagination does not always occur with the active window

Open code86 opened this issue 3 years ago • 1 comments

Describe the bug Pagination does not always occur with the active window (document.activeelement).

Include a screenshot if applicable. animated gif

To Reproduce Steps to reproduce the behavior:

  1. Go to URL 'https://www.nytimes.com/2022/05/31/us/america-grief-life.html'
  2. Using Vimium, click on 'Read Comments' (at bottom of article)
  3. Using Vimium, click on 'Reader Picks'
  4. Using Vimium, scroll page up / down.
  5. 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

code86 avatar May 31 '22 13:05 code86

Some tricks in https://github.com/philc/vimium/issues/3760#issuecomment-812882124 can work it around. And #4016 may be a usable solution.

gdh1995 avatar Jun 01 '22 06:06 gdh1995

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.

trysten avatar Feb 16 '23 05:02 trysten