mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Node: Fix display of percentage in Node.js frames export.
This commit is contained in:
parent
0455d39e33
commit
fadef949ff
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ module.exports = function(paper) {
|
|||
options.onProgress({
|
||||
count: count,
|
||||
amount: options.amount,
|
||||
percentage: Math.round(count / options.amount
|
||||
percentage: Math.round((count + 1) / options.amount
|
||||
* 10000) / 100,
|
||||
time: then - startTime,
|
||||
delta: then - lastTime
|
||||
|
|
Loading…
Reference in a new issue