televator-apps / vimari

Safari port of vimium
https://televator.net/vimari
MIT License
2.57k stars 236 forks source link

Remove delay with J/K scrolling #280

Open nickgerlock opened 1 year ago

nickgerlock commented 1 year ago

Is your feature request related to a problem? Please describe. When using J/K scrolling, movement occurs as an initial step, then a delay, then continued movement.

Describe the solution you'd like Ideally, movement would mirror that of project's origin Vimium. With Vimium, scrolling is immediate without any delay. This could be made configurable in order to avoid changing existing behavior.

Describe alternatives you've considered There doesn't seem to be any other way to execute smooth, immediate scrolling in Safari.

Additional context N/A

nikitavoloboev commented 1 year ago

Also annoyed by this and wish it would be fixed. Interestingly old versions of Vimari or at least when I used it 2 years ago didn't have this issue. So something broke along the way probably by Safari change.

kabouzeid commented 1 year ago

Coincidentally this was just added to the latest Safari beta: https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes

Screenshot 2023-02-19 at 12 00 49
alexkyen commented 1 year ago

re @kabouzeid comment, arrow-key scrolling is now exceptionally smooth in 16.4. Can we implement this for f/j scrolling here?

josetaas commented 11 months ago

If you guys are interested, I've created a fork where single line scrolling is handled by CGEvents that trigger arrow key presses, harnessing Safari's native smooth scrolling feature. Please be aware that because CGEvents are used, you will be prompted to grant accessibility permissions under Privacy & Security settings.