vimium icon indicating copy to clipboard operation
vimium copied to clipboard

No scrolling after quick j-k

Open oriongonza opened this issue 1 year ago • 8 comments

Describe the bug

No scrolling after pressing k j (stands still) To Reproduce

Steps to reproduce the behavior:

  1. press j
  2. release j
  3. press k

oriongonza avatar Jun 07 '24 15:06 oriongonza

I cannot reproduce this issue. What browser/website are you using? Is it happening for you in all browsers or all websites?

UncleSnail avatar Jun 10 '24 13:06 UncleSnail

Chrome, all websites. It happens only in linux (nixos, wayland). In my windows machine there's a slight stutter of a fraction of a second when you do it and it keeps going. In my linux it just stops

oriongonza avatar Jun 11 '24 07:06 oriongonza

Chrome, all websites. It happens only in linux (nixos, wayland). In my windows machine there's a slight stutter of a fraction of a second when you do it and it keeps going. In my linux it just stops

Okay. I am also on Wayland Linux (Arch with Sway wm) and I cannot reproduce this issue in either Firefox or Chromium. I would guess it is likely an issue caused by something else in your setup, like another addon, or your key polling rate of your setup, etc. Some keyboards also do weird things with the key outputs instead of sending out the "direct" signals, so maybe try using a different keyboard and see if it's fixed. You could also try running your Nix install script on another machine and seeing if you still have the problem or if it is just that machine being slow for some reason. Unfortunately, unless I can find a consistent way to reproduce this I don't see how we can debug it to fix the problem, especially if the problem isn't actually in Vimium.

UncleSnail avatar Jun 11 '24 18:06 UncleSnail

How about changing screen DPI to 100%?

gdh1995 avatar Jun 12 '24 18:06 gdh1995

My dpi is 100% I believe. I would need to check to make sure, but I don't know why this would effect anything. Does changing it make a difference for you?

On Wed, Jun 12, 2024, 2:33 PM Dahan Gong @.***> wrote:

How about changing screen DPI to 100%?

— Reply to this email directly, view it on GitHub https://github.com/philc/vimium/issues/4491#issuecomment-2163669269, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADI2AQWKJQ7DGTAQHQ3FRYDZHCH57AVCNFSM6AAAAABI62SUVOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRTGY3DSMRWHE . You are receiving this because you commented.Message ID: @.***>

UncleSnail avatar Jun 13 '24 03:06 UncleSnail

Um then I have no idea.

If DPI is higher than 100%, Vimium may fail to recognize scrollable elements because of fractional position and size numbers, in some rare cases.

gdh1995 avatar Jun 13 '24 18:06 gdh1995

This seems to happen for me when I do so in this order: press j press k release j Or press k press j release k

This order can happen whenever you're switching between scrolling with j & k in quick succession. The releasing of the opposite scroll key results in the scrolling stopping no matter the direction you're moving.

Drednaught608 avatar Oct 05 '24 19:10 Drednaught608

This seems to happen for me when I do so in this order: press j press k release j Or press k press j release k

This order can happen whenever you're switching between scrolling with j & k in quick succession. The releasing of the opposite scroll key results in the scrolling stopping no matter the direction you're moving.

Yes, there is a short pause when switching directions, but I believe that is the correct functionality. It should stop until your key repeat timeout is up (how long your computer takes before holding a key makes it type that key a bunch of times quickly). For me everything seems to be working correctly. If for you the scrolling actually stops and stays stopped, make sure when you hold down a key that key eventually starts repeating (IE, you haven't turned off repeating on your system) and if repeating works and the scrolling stops, let me know.

UncleSnail avatar Oct 05 '24 19:10 UncleSnail

Great writeup everyone. This is a duplicate of #2857, and has been fixed by #4717.

philc avatar Jun 28 '25 23:06 philc