• Hugo Holgersson's avatar
    Snav: Start at the first/last fragment when going Down/Up · 5c4166e2
    Hugo Holgersson authored
    When a fragmented (line broken) link has focus, we use
    one of its fragments (not their union) as search origin.
    
    Going Down: Start at the first fragment.
    Going Up: Start at the last fragment.
    
    This avoid an endless scroll loop when trying to scroll
    a page downwards:
    
      aaaaa FFFFFF
      FFFFFFFF
    
    When F is focused after a SCROLL, we now search below its
    first fragment, instead of going back to #a. This avoids
    a SCROLL-F-a-SCROLL-F-a loop.
    
    Bug: 1015965, 1029269
    
    Change-Id: I4703c28d59f16db4f36f2524943ee4ed067b2dd1
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1912661
    Commit-Queue: Hugo Holgersson <hholgersson@fb.com>
    Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
    Cr-Commit-Position: refs/heads/master@{#720410}
    5c4166e2
snav-first-rtl-fragment-offscreen.html 1.08 KB