mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
fix rest length calculation
This commit is contained in:
parent
c16e3d1d0b
commit
76e5ff0daa
@ -135,7 +135,7 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
while (length > this.dataArray[i].pathLength && i < ii) {
|
||||
while (i < ii && length > this.dataArray[i].pathLength) {
|
||||
length -= this.dataArray[i].pathLength;
|
||||
++i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user