• Nicholas Hollingum's avatar
    Propagate ordinal motion to Exo clients (if it is available) · 5ae5e597
    Nicholas Hollingum authored
    On some platforms (including CrOS, as of crrev.com/c/2277694) ordinal
    motion will be available as part of mouse motion events.
    
    We use ordinal motion to provide unaccelerated motion in the
    zwp_relative_pointer interface. In the event that ordinal motion is not
    available, we default to the old behaviour (i.e. using accelerated
    motion).
    
    This behaviour is guarded by a flag, as the units it provides on CrOS
    are disproportionately small (compared with the standard cursor
    acceleration).
    
    Bug: b/161755250
    Change-Id: I774db6ef7db7460f1c5674fffdaca65e7fb170fa
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2371088
    Commit-Queue: Nic Hollingum <hollingum@google.com>
    Reviewed-by: default avatarJun Mukai <mukai@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#811137}
    5ae5e597
pointer_unittest.cc 54.4 KB