mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-22 22:11:27 +01:00
This commit is contained in:
parent
47ae0bf35f
commit
7257d4ca35
1 changed files with 8 additions and 3 deletions
|
@ -107,11 +107,16 @@ class TouchGestureDetector(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
for( i in 0..<event.pointerCount) {
|
for (i in 0..<event.pointerCount) {
|
||||||
val index = pointerIdToIndex[i] ?: continue
|
val index = pointerIdToIndex[i] ?: continue
|
||||||
|
|
||||||
repeat(event.historySize) {
|
for (j in 0..<event.historySize) {
|
||||||
paths[i]?.update(Vector(event.getHistoricalX(index), event.getHistoricalY(index)))
|
paths[i]?.update(
|
||||||
|
Vector(
|
||||||
|
event.getHistoricalX(index, j),
|
||||||
|
event.getHistoricalY(index, j)
|
||||||
|
)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
paths[i]?.update(Vector(event.getX(index), event.getY(index)))
|
paths[i]?.update(Vector(event.getX(index), event.getY(index)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue