Inactive cursors proper clearing (#7)

* extract canvasDrawPoints and use new_last_points.

* lint fix.

* canvasDrawPoints default percent 1,
This commit is contained in:
Miroslav Šedivý
2022-07-28 12:21:03 +02:00
committed by GitHub
parent cd15007e3c
commit cf97610067
2 changed files with 16 additions and 6 deletions

View File

@ -10,7 +10,7 @@ export function getMovementXYatPercent(p: Point[], percent: number): Point {
const len = p.length
if (len == 0) {
console.error('getMovementXYatPercent: no points specified');
return { x:0, y:0 }
return { x:0, y:0 }
}
if (len == 1) return p[0]