Bug 312501 - Scrollbar has a (slight) rendering bug
Summary: Scrollbar has a (slight) rendering bug
Status: ASSIGNED
Alias: None
Product: Oxygen
Classification: Plasma
Component: style (show other bugs)
Version: 4.8
Platform: Ubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-02 20:33 UTC by public+kde
Modified: 2021-03-09 23:58 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description public+kde 2013-01-02 20:33:08 UTC
Version: 4:4.8.5-0ubuntu0.2

If one hovers over the track of a scrollbar and scrolls using the arrow keys or the scroll wheel *without* moving the mouse pointer in a way that the slider stops under the mouse pointer,
the slider is not properly drawn — it's still in unhovered state. If the mouse pointer is moved, the hover state of the slider is updated and it's drawn correctly.

I don't really know the code, but I suppose an easy fix would be to check the mouse pointer position not only if the mouse pointer is moved but every time the scroll bar sliders' position changes.

Reproducible: Always

Steps to Reproduce:
1. Take a scroll bar
2. Hover over the track
3. Move the slider without moving the mouse pointer
Actual Results:  
Scrollbar slider is not drawn as it should (not hovered/with it's "glow")

Expected Results:  
Scrollbar slider should be in hovered state
Comment 1 Hugo Pereira Da Costa 2013-01-07 10:22:00 UTC
Confirmed. I'll look for a fix (your solution looks doable but I'll check in more detail)
Comment 2 Justin Zobel 2021-03-09 23:58:24 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.