mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '6f2830dcb91fd2d00088c7522c91a45e90a1f3e6': Fix a bug where gesture would delay update.
This commit is contained in:
commit
805bae9575
@ -823,14 +823,16 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||
final int size = sAggregratedPointers.getPointerSize();
|
||||
if (size > sLastRecognitionPointSize
|
||||
&& stroke.hasRecognitionTimePast(eventTime, sLastRecognitionTime)) {
|
||||
sLastRecognitionPointSize = size;
|
||||
sLastRecognitionTime = eventTime;
|
||||
if (DEBUG_LISTENER) {
|
||||
Log.d(TAG, String.format("[%d] onUpdateBatchInput: batchPoints=%d", mPointerId,
|
||||
size));
|
||||
}
|
||||
mTimerProxy.startUpdateBatchInputTimer(this);
|
||||
mListener.onUpdateBatchInput(sAggregratedPointers);
|
||||
// The listener may change the size of the pointers (when auto-committing
|
||||
// for example), so we need to get the size from the pointers again.
|
||||
sLastRecognitionPointSize = sAggregratedPointers.getPointerSize();
|
||||
sLastRecognitionTime = eventTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user