Skip to content
  • José Expósito's avatar
    gtkeventcontrollerscroll: Send lores scroll in the middle of the detent · e6193879
    José Expósito authored and Carlos Garnacho's avatar Carlos Garnacho committed
    Some mice send a value slightly lower than 120 for some detents. The
    current approach waits until a value of 120 is reached before sending a
    low-resolution scroll event.
    
    For example, the MX Master 3 sends a value of 112 in some detents:
    
                  detent                   detent
        |                        |                       |
                            ^    ^                    ^
                            112  REL_WHEEL            224
    
    As illustrated, only one event was sent but two were expected. However,
    sending the low-resolution scroll event in the middle plus the existing
    heuristics to reset the accumulator solve this issue:
    
                  detent                   detent
        |                        |                       |
                    ^          ^             ^          ^
                    REL_WHEEL  112           REL_WHEEL  224
    
    Send low-resolution scroll events in the middle of the detent to solve
    this problem.
    
    Related to mutter#2469
    e6193879