Skip to content

In Firefox, smooth scrolling is very choppy when "privacy.resistFingerprinting" is set to true in about:config #3641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
clonex10100 opened this issue Aug 17, 2020 · 4 comments · May be fixed by #3701

Comments

@clonex10100
Copy link

clonex10100 commented Aug 17, 2020

I'm not sure if this is Firefox's fault or the extensions fault, but I thought I'd post it here just incase someone else has choppy scrolling and can't figure out why.

To Reproduce
Ensure smooth scrolling is on in Vimium-FF and firefox preferences
Go to about:config and set "privacy.resistFingerprinting" to true
Scroll using vimium keybinds

Browser and Vimium version
Firefox Version: 79.0
Os: Arch
Vimium-FF Version: 1.66

@gdh1995
Copy link
Contributor

gdh1995 commented Aug 20, 2020

This is because when this configuration is true, Firefox gives Vimium fake timestamps (something like 0, 0, 0.1sec, 0.1sec, 0.1sec, 0.2sec, 0.2sec, 0.3sec, ...), and Vimium fails in computing scrolling distance if a second timestamp is equal with the one before.

When this is false, then the timestamp will be like 0, 0.017sec, 0.034sec, 0.051sec, ... - the precision is much higher.

@kamkudla
Copy link

Are there any solutions to this? I can confirm that window.scrollBy works around the issue with timing:

window.scrollBy({
          top: 100,
          left: 0,
          behavior: 'smooth'
        });

@gdh1995
Copy link
Contributor

gdh1995 commented Oct 27, 2020

Vimium can work with behavior: 'smooth' - only when the "Use smooth scrolling" is disabled and you don't hold on the key of scroll commands.

@kamkudla
Copy link

kamkudla commented Oct 27, 2020

How do I implement this? I toggled off "Use smooth scrolling" and I am running v1.66.

Update:
I changed this line and re-built. Holding the scroll keys works fine.

const scrollArg = {behavior: "instant"};

@philc philc changed the title VIMIUM-FF Smooth scrolling is very choppy when "privacy.resistFingerprinting" is set to true in about:config In Firefox, smooth scrolling is very choppy when "privacy.resistFingerprinting" is set to true in about:config Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants