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

Option to scroll on key press without holding #6

Open
jannis-baum opened this issue Nov 23, 2022 · 11 comments
Open

Option to scroll on key press without holding #6

jannis-baum opened this issue Nov 23, 2022 · 11 comments

Comments

@jannis-baum
Copy link

Currently, Scrolla scrolls while holding a scrolling key. I would prefer having it scroll a preset (best case customizable) amount every time the key is pressed; still smoothly of course. I really like how Vimari scrolls.

Arguments

  • number of key-presses is more consistent & predictable compared to holding time
  • holding would still work because the OS sends repeated key strokes while holding
  • having to hold anything always gives me the feeling I'm waiting for something
@godbout
Copy link
Owner

godbout commented Nov 24, 2022

interesting.

here's the thing. the first internal version of Scrolla was working the way you're describing. actually it somehow still works this way. the thing is if you keep pressing, it cancels the last move and adds a new move. this is what brings the smooth scrolling. it's a hack. it's possible not to cancel the last scroll of course, and to press and/or hold, but then i don't see how i can get the smooth scrolling. am i missing something or Vimari doesn't do smooth scrolling? (i'm on battery. maybe a energy efficient thing?)

@godbout
Copy link
Owner

godbout commented Nov 24, 2022

Vimium and Vimari work differently indeed. Scrolla currently works like Vimium.

@godbout
Copy link
Owner

godbout commented Nov 24, 2022

i'm thinking about making this an option. like scroll type: hold, smooth or press, rough.

@jannis-baum
Copy link
Author

but then i don't see how i can get the smooth scrolling. am i missing something or Vimari doesn't do smooth scrolling? (i'm on battery. maybe a energy efficient thing?)

Vimari has the setting "smoothScroll". I have it set to true, maybe yours is false?

On top of that, Vimari has "scrollSize" and "scrollDuration" which define the distance, time and speed of an individual scroll (key press). Having these three settings would be the perfect setup for me. I guess at least the scrollSize would have to be settable for jk, ud etc individually.

@godbout
Copy link
Owner

godbout commented Nov 24, 2022

Vimari has the setting "smoothScroll". I have it set to true, maybe yours is false?

turned on yes. definitely not smooth for me.

@godbout
Copy link
Owner

godbout commented Nov 24, 2022

oh ok. if you do one press yes, it's smooth. if you keep pressing, or hold, then it's not smooth. at least not in my case. running on real electricity now.

@jannis-baum
Copy link
Author

jannis-baum commented Nov 24, 2022

For me it's very smooth🤷

Screen.Recording.2022-11-24.at.10.23.29.AM.mov

Holding & pressing the up/down keys with these settings:

{
  "scrollSize": 300,
  "smoothScroll": true,
  "scrollDuration": 25
}

Hope the video plays properly

@godbout
Copy link
Owner

godbout commented Nov 24, 2022

hmm. changed from 150 to 300. still not as smooth as yours. strange.

@jannis-baum
Copy link
Author

My full completely random settings:

{
  "excludedUrls": "",
  "linkHintCharacters": "qwrf;zm,",
  "detectByCursorStyle": false,
  "scrollSize": 300,
  "openTabUrl": "about:blank",
  "modifier": "",
  "smoothScroll": true,
  "scrollDuration": 25,
  "transparentBindings": true,
  "bindings": {
      "hintToggle": "ctrl+f",
      "newTabHintToggle": "ctrl+shift+f",
      "scrollUp": "up",
      "scrollDown": "down",
      "scrollLeft": "left",
      "scrollRight": "right",
      "scrollUpHalfPage": "",
      "scrollDownHalfPage": "",
      "goToPageTop": "",
      "goToPageBottom": "",
      "goToFirstInput": "",
      "goBack": "",
      "goForward": "",
      "reload": "",
      "tabForward": "",
      "tabBack": "",
      "closeTab": "",
      "openTab": ""
  }
}

(I was trying to use it with kV last time I used it so I had everything disabled and just wanted it to scroll)

@godbout
Copy link
Owner

godbout commented Nov 24, 2022

same. maybe just my perception. i find Sl smoother. anyways, will try to add a not holding mode.

@godbout
Copy link
Owner

godbout commented Mar 26, 2023

not sure where this is going because scrolling properly without holding and/or while holding requires different work combined together, but here's some research that may help (for myself):

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

No branches or pull requests

2 participants