Bug 56596 - Overlay scrollbars sometimes fail to appear
Summary: Overlay scrollbars sometimes fail to appear
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Beth Dakin
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-03-17 14:45 PDT by Beth Dakin
Modified: 2011-03-17 16:22 PDT (History)
1 user (show)

See Also:


Attachments
Patch (2.77 KB, patch)
2011-03-17 14:48 PDT, Beth Dakin
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Beth Dakin 2011-03-17 14:45:54 PDT
* SUMMARY
The overlay scrollbars fail to appear sometimes… it is pretty reproducible, and has something to do with beginning a scroll while they scrollbars are fading out.

* STEPS TO REPRODUCE
1. Using a build with overlay scrollbars, go to a website with a vertical scrollbar
2. Use trackpad to scroll
3. Briefly stop scrolling; leave your 2 fingers on the trackpad
4. When the scrollbars start to fade away, resume scrolling

* RESULTS
If you time it just right, the scrollbars won't re-appear.  You can scroll just fine, there is just no visual scrollbar.

<rdar://problem/8953779>

Patch forthcoming.
Comment 1 Beth Dakin 2011-03-17 14:48:01 PDT
Created attachment 86097 [details]
Patch
Comment 2 Darin Adler 2011-03-17 16:20:01 PDT
Comment on attachment 86097 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=86097&action=review

> Source/WebCore/platform/mac/ScrollAnimatorMac.mm:401
> +    [[NSAnimationContext currentContext] setDuration:duration];

It’s a little weird that we have to pass the duration here and also to the animation.
Comment 3 Beth Dakin 2011-03-17 16:22:53 PDT
Thanks, Darin! Committed with revision 81406.