Skip to content
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

FEATURE: Scrolling locks when double-tap, or long-press, in empty space in a browser #65

Open
ElectricEgghead opened this issue Jan 6, 2018 · 2 comments

Comments

@ElectricEgghead
Copy link

My laptop doesn't have two-finger scrolling. Could you make this extension lock when double-tapped once in the empty space in the browser? Or if I long-press my touchpad (maybe one second) the scrolling will lock? Preferably, the cursor doesn't move with the page, or show, so it emulates two-finger scrolling?

Thanks for this extension. It's helping me navigate a lot easier with this new laptop.

My setup:

  • Mouse button used when scrolling: Neither. I double-tap on my touchpad in empty space, then drag my mouse up/down. Left, technically, I guess. Lol.
  • Chrome version: Using Torch, 57.0.0.12335
  • Operating system: Windows 10, 32-bit
    Lenovo Ideapad 100S 11lBY
@ElectricEgghead ElectricEgghead changed the title Scrolling locks when double-tap, or long-press, in empty space in a browser FEATURE: Scrolling locks when double-tap, or long-press, in empty space in a browser Jan 6, 2018
@davidparsson
Copy link
Owner

Hi, and thanks for your suggestion. I will consider this, but I don't think you can expect it to be implemented any time soon. I'm maintaining this on my spare time, and I don't have a lot of that nowadays.

If you're able to, you're welcome to try forking and implementing it yourself. I'd be happy to accept a pull request.

@clayboone
Copy link

This should work all the way back to Chrome 37. It's not pretty and I won't be submitting it for a PR (at least not until the bugs are ironed out), but maybe it'll be useful for ya.

Some bugs I noticed:

  • The first movement after the pointer locks (ie. after a double-click), the page is scrolled up by a full page's length plus a little bit. If you happen to be at the very top of a page when you activate it, this still applies. So just.. scroll down a lot, I guess.
  • Gliding doesn't work yet.
  • There's a way to wiggle the options into a configuration that locks the pointer when you double-click the middle button. This isn't the default, though. I don't think.
  • The double-click time limit is a static 500-milliseconds. This isn't really a bug, I just found it funny that Chrome couldn't pull that information from the system. So instead of writing an OS-dependent mess, I planned on putting an option in allowing you tell it how long a double-click should take. I haven't gotten to that yet, though.

Good luck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants