diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-12 05:28:34 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-08-12 14:52:50 +0300 |
commit | 215734bc522a8db532a626f460b85b66b0aa0a4c (patch) | |
tree | 7198cdb9850ccc8891a15f66042527190c24d182 /source/blender/blenkernel/intern/constraint.c | |
parent | 6293cf61312763152b00cb4f588061f7b281caf7 (diff) |
Fix T88386: Continuous Grab occasionally jumping on Arm64 MacOS
During the processing of a continuous drag event, other mouse move
events may be in the queue waiting to be processed.
But when a mouse wrapping happens, these waiting mouse move events
become out of date as they report a mouse position prior to wrapping.
The current code ignores these events by comparing their `timestamp` to
the time recorded in the last mouse wrapping.
The bug happens because the computed value in
`mach_absolute_time() * 1e-9` for some reason is incompatible with the
value of `[event timestamp]`.
Since macOS 10.6, we have a new way to get the amount of time the
system has been awake. `[[NSProcessInfo processInfo] systemUptime]`.
Using this updated method fixed the problem.
Differential Revision: https://developer.blender.org/D12202
Diffstat (limited to 'source/blender/blenkernel/intern/constraint.c')
0 files changed, 0 insertions, 0 deletions