fix bug in gesture detection logic
Some checks are pending
Android CI / build (push) Waiting to run

This commit is contained in:
Josia Pietsch 2025-02-16 23:58:42 +01:00
parent 47ae0bf35f
commit 7257d4ca35
Signed by: jrpie
GPG key ID: E70B571D66986A2D

View file

@ -110,8 +110,13 @@ class TouchGestureDetector(
for (i in 0..<event.pointerCount) {
val index = pointerIdToIndex[i] ?: continue
repeat(event.historySize) {
paths[i]?.update(Vector(event.getHistoricalX(index), event.getHistoricalY(index)))
for (j in 0..<event.historySize) {
paths[i]?.update(
Vector(
event.getHistoricalX(index, j),
event.getHistoricalY(index, j)
)
)
}
paths[i]?.update(Vector(event.getX(index), event.getY(index)))
}