lxde / lxterminal

VTE terminal emulator written in GTK
GNU General Public License v2.0
161 stars 57 forks source link

Enable kinetic scrolling on GTK+3 (Was: Proper scrolling on touchpads) #33

Open HybridDog opened 7 years ago

HybridDog commented 7 years ago

When scrolling up and down, it currently peacemeal scrolls more than one line at once (lines count depends on the window height). When using a touchpad instead of a mouse wheel, you don't scroll discrete, you can e.g. scroll 0.1 lines in a scroll event, but lxterminal's scrolling doesn't support it yet. I'd like to have it scroll line by line on a touchpad (and a scrolling speed factor depending on the window height). It could add the scrolling distance, multiplied with the scrolling speed factor, to a double and every frame (60 fps) it takes the integer part from the double and scrolls these lines. If scrolling up, the scrolling distance is negative, else it's positive.

medicalwei commented 7 years ago

It would require compiling against GTK+3 library. If so, the pixel-perfect scrolling will be available. Marking as invalid because this feature is available.

HybridDog commented 7 years ago

thanks for this information I compiled it with GTK+3. How can l enable finer scrolling?

medicalwei commented 7 years ago

The scrolling is finer on my side (with GTK+3). I don't know if your device supports finer scrolling or not. What device are you using? you notifications@github.com於 2017年6月29日 週四,03:24寫道:

I compiled it with GTK+3. How can l enable finer scrolling?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/lxde/lxterminal/issues/33#issuecomment-311761817, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEi8Xp2kG-N1HrYzABgaLeu8gV11stlks5sIqhegaJpZM4N7ahC .

HybridDog commented 7 years ago

Fine scrolling works with evince and other programs. l'm using an asus laptop.

medicalwei commented 7 years ago

This is marked as enhancement. I finally found out that terminal window (vte) is lack of kinetic scrolling.

Reference: https://developer.gnome.org/gtk3/stable/GtkScrolledWindow.html#gtk-scrolled-window-set-kinetic-scrolling

HybridDog commented 2 years ago

I have a different operating system now and fine scrolling works for me.