Bug 148939 - Excessive mouse scroll step in the styles list using tabbed interface and non-gtk3
Summary: Excessive mouse scroll step in the styles list using tabbed interface and non...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.1.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: needsKDE
Keywords:
Depends on:
Blocks: Styles-Preview
  Show dependency treegraph
 
Reported: 2022-05-04 19:12 UTC by Rafael Lima
Modified: 2022-05-28 12:33 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Video showing the problem in LO 7.3 (59.58 KB, video/mp4)
2022-05-04 19:12 UTC, Rafael Lima
Details
Video showing the bug in LO 7.4 (77.64 KB, video/mp4)
2022-05-19 13:26 UTC, Rafael Lima
Details
Screenshot using "gen" (78.49 KB, video/mp4)
2022-05-25 13:46 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2022-05-04 19:12:02 UTC
Created attachment 179926 [details]
Video showing the problem in LO 7.3

In the tabbed interface we have a Styles List showing all the available styles alongside a quick preview. Using kf5 the scroll step using the mouse wheel is not calibrated correctly. Scrolling the smallest amount will cause the list to move down excessively.

See the attached video for more details. First I use the mouse wheel and scroll down the smallest amount I can, however the view is moved far beyond expected. Dragging the vertical scrollbar reveals that there are many more entries that are not shown when using the mouse wheel.

From my testing, this problem only happens in kf5. Using gtk3 makes the problem go away, so it seems to be a kf5-specific issue.

System info:
Version: 7.3.2.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 12; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: pt-BR
Ubuntu package version: 1:7.3.2~rc2-0ubuntu0.21.10.1~lo1
Calc: threaded
Comment 1 Rafael Lima 2022-05-19 13:26:41 UTC
Created attachment 180223 [details]
Video showing the bug in LO 7.4

In Comment #1 I described how the problem happens in LO 7.3. However, after doing some testing with LO 7.4 from master, I noticed that a different problem is happening.

See attached video for more details. In summary, in 7.4 the scrolling issue is gone. However, after I use mouse scroll the vertical scrollbar stops responding.

In this new video I start by using the mouse scroll and everything is fine. Then, when I try to use the vertical scrollbar, it moves to the top and no longer responds to the mouse.

System info:
Version: 7.4.0.0.alpha1+ / LibreOffice Community
Build ID: ad6905f9a09c63712ba0aaffc700923246d21e55
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL
Comment 2 Jan-Marek Glogowski 2022-05-25 12:39:04 UTC
FYI, it's always recommended to compare with gen when testing qt or kf5 VCL plugins. gtk3 uses a different theming engine with native widgets, while qt (which kf5 uses) just "themes / styles" LO's own widgets. If gen works and qt not, it's likely a qt problem, if gen and qt show the same behavior, it's a more general LO bug, likely affecting all non-gtk3 VCL plugins.
Comment 3 Rafael Lima 2022-05-25 13:46:37 UTC
Created attachment 180373 [details]
Screenshot using "gen"

(In reply to Jan-Marek Glogowski from comment #2)
> FYI, it's always recommended to compare with gen when testing qt or kf5 VCL
> plugins. gtk3 uses a different theming engine with native widgets, while qt
> (which kf5 uses) just "themes / styles" LO's own widgets. If gen works and
> qt not, it's likely a qt problem, if gen and qt show the same behavior, it's
> a more general LO bug, likely affecting all non-gtk3 VCL plugins.

Hi Jan-Marek, thanks for the tip. I tested under "gen" and indeed the problem is not kf5-specific, since it's also reproducible with gen.

Actually with "gen" I could notice that the reason why the scrollbar cannot be dragged in 7.4 is because it receives an incorrect size.

See attached video.
Comment 4 Jan-Marek Glogowski 2022-05-28 12:33:44 UTC
That widget has multiple problems. I just linked