Bug 25238 - REGRESSION: Scrollbar hot-tracking drawn incorrectly
Summary: REGRESSION: Scrollbar hot-tracking drawn incorrectly
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Peter Kasting
Depends on:
Reported: 2009-04-16 10:41 PDT by Peter Kasting
Modified: 2009-04-17 13:42 PDT (History)
1 user (show)

See Also:

patch v1 (1.87 KB, patch)
2009-04-16 11:36 PDT, Peter Kasting
adele: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kasting 2009-04-16 10:41:10 PDT
Go to a page with a vertical scrollbar (I use news.google.com).  Click once in the track just below the thumb.  Note that only half of the thumb is drawn hot.

This regressed some time before February 20, 2009 (that was the date I filed this for Chromium).
Comment 1 Peter Kasting 2009-04-16 11:31:28 PDT
I have a fix for this locally.
Comment 2 Peter Kasting 2009-04-16 11:36:06 PDT
Created attachment 29540 [details]
patch v1

Because we don't draw a hovered state if there's a pressed part, we need to make sure we invalidate any hovered part when we reset the pressed part, so that it can begin drawing its hovered state correctly.

(The "half the thumb is hot" effect from before was due to the way the track and thumb rects overlap, since we were invalidating a track piece.)
Comment 3 Peter Kasting 2009-04-17 13:42:35 PDT
Fixed in r42624.