diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-12-23 14:26:35 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-12-23 19:53:22 +0100 |
commit | 2c3198ab5facdb5d36bd1513deeb15046fb61495 (patch) | |
tree | c98c50b2c030947c1dd90e650db048d9c9fef924 /tests/auto/corelib/io | |
parent | a7b70ee55b77f1e1be1bd08c058ce8e1ee0ab21c (diff) |
macOS: Sanitize scroll deltas for NSEventPhaseCancelled
On macOS 12.1 the NSEventPhaseCancelled phase can in some situations
report deltas, which causes the scroll to "jump". This happens for
example when initiating a momentum-scroll, and then putting two
fingers on the trackpad to cancel the momentum phase, which starts
a new NSEventPhaseMayBegin phase. When then lifting the two fingers
again, we get an NSEventPhaseCancelled event with deltas, but the
deltas seem like uninitialized data (has a x-value, after doing
a purely vertical scroll e.g.).
Task-number: QTBUG-97841
Pick-to: 6.3 6.2 5.15
Change-Id: I14e765b6111e53e7d3d0da219d4ac7fefe5243d0
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/corelib/io')
0 files changed, 0 insertions, 0 deletions