• David Bokan's avatar
    Fix overlay scrollbar at huge scroll offsets · 9e21c73c
    David Bokan authored
    The overlay scrollbar ThumbPosition method was losing precision at very
    high scroll offsets. This would cause it to drift away from where we
    actually show the thumb from the compositor so the hit testing would be
    unreliable.
    
    Looking at this method, there's no reason it should need to be any
    different from the base class ScrollbarTheme::ThumbPosition which is
    robust under high scroll offsets so the solution here is to simply
    remove the override. Less code, less bugs.
    
    Bug: 739668
    Change-Id: Ib90152d989931cd0bcc0bddfb226d97d577ce575
    Reviewed-on: https://chromium-review.googlesource.com/598734Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
    Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
    Commit-Queue: David Bokan <bokan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#491766}
    9e21c73c
ScrollbarThemeOverlay.h 3.91 KB