Bug 312501

Summary: Scrollbar has a (slight) rendering bug
Product: [Plasma] Oxygen Reporter: public+kde
Component: styleAssignee: Hugo Pereira Da Costa <hugo.pereira.da.costa>
Status: ASSIGNED ---    
Severity: minor CC: hugo.pereira.da.costa, public+kde
Priority: NOR    
Version First Reported In: 4.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.