• chaopeng's avatar
    Improve overscroll user experience on Windows · 9736c525
    chaopeng authored
    This patch includes 2 changes, These changes only effect Windows
    touchpad because only fling events on Windows touchpad can reach
    overscroll controller.
    
    1. Prevent fling event start overscroll.
    2. Only fling events in first 0.3 second will processed for
       overscroll. On Windows, we don't generate the inertial
       events (fling) but receive them from Win API. In some cases,
       we get a long tail of inertial events for a couple of seconds.
       The overscroll animation feels like stuck in these cases. So
       we only process 0.3 second inertial events then cancel the
       overscroll if it is not completed yet.
    
    Bug: 647140
    Change-Id: Iea7941bff77a84f95acf8f342c12273cb909a5d3
    Reviewed-on: https://chromium-review.googlesource.com/1025391
    Commit-Queue: Jianpeng Chao <chaopeng@chromium.org>
    Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
    Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#556890}
    9736c525
overscroll_configuration.h 2.76 KB