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
Smooth scrolling #790
Comments
In |
I enabled it, but nothing happened. Scrolling is still discrete. Linux (Arch); Luakit 2.1 |
That setting doesn't do what I'd guess @Shamaoke is probably asking about, which is smooth scrolling when you scroll with Scrolling with That API is actually deprecated in favour of the JavascriptCore API. Unfortunately webkit does not currently support the smooth scrolling option for TL;DR: No, unfortunately :( |
@aidanholm Thank you for the explanation. |
The smooth scrolling setting does something. It enables smooth scrolling for the mouse wheel. So it's not entirely useless. |
@c0dev0id For me it does nothing. Scrolling is still discrete neither by keys nor by mouse. Here's my configuration file:
|
Hrm, well as a workaround you might be able to hack things so that j/k/etc keys sent scrollwheel events to the webview instead. Of course, this would break the scrollstep setting, and wouldn't work for page-based or absolute scrolls, so it'd never be mergable, but if you really want your j/k keys to smoothscroll, you could do that. |
@Shamaoke Ah, that's because that's not set correctly. You'd need to do this: local settings = require "settings"
settings.webview.enable_smooth_scrolling = true This can be pretty confusing, admittedly, but module properties and settings are explicitly separate. You can check (and change) your settings here: luakit://settings/ |
@aidanholm Thank you for the correction. This way it works. I still prefer using a configuration file in order to version control it. |
You're welcome! To be clear, the lack of support and API issues and all that stuff is something that we'd very much like to have fixed. Ideally, smooth scrolling would piggyback on the |
Is there any way to enable smooth scrolling in Luakit?
The text was updated successfully, but these errors were encountered: