Bug 432130 - high-res/non-integer scrolling clashes BAD with font hinting/icons
Summary: high-res/non-integer scrolling clashes BAD with font hinting/icons
Status: RESOLVED FIXED
Alias: None
Product: libplasma
Classification: Frameworks and Libraries
Component: components (show other bugs)
Version: 5.78.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-26 01:05 UTC by Bernhard
Modified: 2023-10-16 12:10 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
slow scrolling causes artifacts (151.91 KB, video/mp4)
2021-01-26 01:05 UTC, Bernhard
Details
animated png - shows how it jumps to fill pixels (104.78 KB, image/gif)
2021-01-26 01:06 UTC, Bernhard
Details
The outline and icon of an element look weird. (350.98 KB, video/x-matroska)
2021-07-19 15:31 UTC, Derek Christ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard 2021-01-26 01:05:08 UTC
Created attachment 135190 [details]
slow scrolling causes artifacts

SUMMARY
My high resolution touchpad seems to scroll in steps that are not multiple of 1px which butchers text rendering AND icons (get blurred), see attached video
This happens in every system tray view that has enough content to scroll (as far as I could test)

STEPS TO REPRODUCE
1. Have a high-res scrolling device
2. scroll slowly in any scrollable systray window

OBSERVED RESULT
Text get's butcheres/has missing pixels and lines. I guess it tries to scroll less then full pixels which behaves badly in combination with font hinting. Icons get a bit blurred on the y-axis.
You really have to look at the attachments.
By hovering over the text (highlighting it) it automatically scrolls to the next full pixel fixing the whole view. (see 'can look fine.apng')

EXPECTED RESULT
Text should always look about the same, no matter how I scroll.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.20.5 on x11
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.10.10-arch1-1
OS Type: 64-bit
Processors: 8 × AMD Ryzen 7 4700U with Radeon Graphics
Memory: 15.1 GiB of RAM
Graphics Processor: AMD RENOIR

ADDITIONAL INFORMATION
I have noticed that icons and text DO NOT scroll at the same time. Over the course of apperently two scroll events it looks like first only the text scrolls, and on the second one only icons scroll.

xinput reports my touchpad to be 'SYNA32A1:00 06CB:CE17 Touchpad'
more details if useful: https://paste.ubuntu.com/p/YR7XNhmRTq/

I am using a 1080p screen.
Comment 1 Bernhard 2021-01-26 01:06:42 UTC
Created attachment 135191 [details]
animated png - shows how it jumps to fill pixels
Comment 2 Derek Christ 2021-07-19 15:31:17 UTC
Created attachment 140191 [details]
The outline and icon of an element look weird.

This may also be the cause why the applet for the hidden systray elements is so blurry even without any scrolling.
Comment 3 Bernhard 2023-10-16 12:10:23 UTC
This seems fixed now (and for a while)