Bug 161253 - Only partial implementation of kinetic/inertial scrolling on GTK
Summary: Only partial implementation of kinetic/inertial scrolling on GTK
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.4.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: GTK3
  Show dependency treegraph
 
Reported: 2024-05-24 07:42 UTC by bugreportr
Modified: 2024-05-26 13:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Kinetic scrolling working on customize pop-up (972.25 KB, video/mp4)
2024-05-24 07:51 UTC, bugreportr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugreportr 2024-05-24 07:42:16 UTC
Description:
When scrolling through certain menus (eg. the customize pop-up) on all LibreOffice applications, kinetic scrolling using touchpad is possible on Xorg. However, it isn't possible, or doesn't seem to have been implemented, on the main UI. Only tested on Xorg and not on Wayland. Also, kinetic scrolling only works for the GTK theme (libreoffice-gtk3), but not for the Breeze theme (libreoffice-style-breeze), even on Plasma.

Steps to Reproduce:
1. Go to Tools -> Customize and try scrolling with touchpad
2. Now try scrolling with touchpad on the main UI

Actual Results:
Kinetic scrolling possible on the customize pop-up, but not on the main UI.

Expected Results:
Kinetic scrolling should be possible throughout the interface.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.4.7.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 8; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Debian package version: 4:7.4.7-1+deb12u2
Calc: threaded
Comment 1 bugreportr 2024-05-24 07:51:07 UTC
Created attachment 194327 [details]
Kinetic scrolling working on customize pop-up
Comment 2 Rafael Lima 2024-05-24 11:51:58 UTC
The gtk3 backend uses native gtk widgets and they implement kinetic scrolling. However, other parts of the UI that are not fully gtk3-native may not implement kinetic scrolling.

I'm on the kf5 backend (used for Plasma) and kinetic scrolling is not there yet either.
Comment 3 Julien Nabet 2024-05-24 13:12:25 UTC
Also, please use a more recent LO version this one is from Debian stable.
Debian stable is more for servers (so not suitable for Office work), not for desktop.
Either upgrade to Debian testing version or you can keep stable but use LO packages (and dependencies) from Debian testing.
Personally, I've been using Debian testing since years (at least 15 years I think) and have very pbs. IMHO it's a good compromise between stability from stable and bleeding edge versions from unstable Debian (aka SID).
Comment 4 bugreportr 2024-05-24 14:54:15 UTC
(In reply to Rafael Lima from comment #2)
> The gtk3 backend uses native gtk widgets and they implement kinetic
> scrolling. However, other parts of the UI that are not fully gtk3-native may
> not implement kinetic scrolling.

So are there plans to implement the entirety of LibreOffice in GTK instead of... whatever it's using rn? Seems like a good option to release a GTK and a Qt version rather than use themes.

(In reply to Julien Nabet from comment #3)
> Also, please use a more recent LO version this one is from Debian stable.

The issue persists on the latest release (24.2.3.2) too, btw.
Comment 5 Julien Nabet 2024-05-24 15:18:45 UTC
bugreport: please don't confirm your bugs (that's why I put it back to UNCONFIRMED instead of NEW). Thank you for the feedback about 24.2.

Michael: any thoughts here?
Comment 6 Michael Weghorn 2024-05-25 07:36:02 UTC
I can confirm on Debian testing in a GNOME Wayland session. (On Plasma Wayland, no kinetic scrolling happens for me with the gtk3 VCL plugin even in "Tools" -> "Customize").

(In reply to Rafael Lima from comment #2)
> The gtk3 backend uses native gtk widgets and they implement kinetic
> scrolling. However, other parts of the UI that are not fully gtk3-native may
> not implement kinetic scrolling.

That was my initial thought, too. With the commits from tdf#117388 in place, I thought that native GTK scrollbars should be used for the main/document view as well, though. (But maybe that's something else more is needed.)

> I'm on the kf5 backend (used for Plasma) and kinetic scrolling is not there yet either.

Do other Qt/KDE apps use kinetic scrolling? Just tested Kate, and it doesn't for me, also not in a GNOME session where GTK applications do. Or does kinetic scrolling have to be enabled somewhere?
(But let's keep the scope for this bug report for GTK.)

(In reply to bugreportr from comment #4)
> So are there plans to implement the entirety of LibreOffice in GTK instead
> of... whatever it's using rn? Seems like a good option to release a GTK and
> a Qt version rather than use themes.

For Linux, LibreOffice has different so-called "VCL plugins" to integrate with the different desktop environments/toolkits. There are ones based on GTK (gtk3, gtk4) and Qt (qt5, qt6, kf5, kf6). From all I know, there's currently no plan to change that approach.
The GTK ones mostly use native widgets, the others don't at this point in time (s. tdf#130857 for the Qt-based VCL plugins).


Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 4d2c41e8171139e210d94b0c3c2b6b3d6392665a
CPU threads: 32; OS: Linux 6.7; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 7 bugreportr 2024-05-26 13:47:53 UTC
(In reply to Michael Weghorn from comment #6)
> Do other Qt/KDE apps use kinetic scrolling?

No, Qt doesn't support kinetic scrolling, neither in Xorg nor Wayland. Using GTK versions of apps is better ngl even on Qt DEs 'cause they can theme pretty well and also... kinetic scrolling :)