Fix thumbnail loading bar (#2772)

This commit is contained in:
Davide Punzo authored and GitHub committed 2022-04-06 18:23:02 +02:00
1 parent cedeb756c0
commit a507a00f59
2 files changed
+4 -2

No files matched your search

@@ -401,7 +401,7 @@ class StackLoadingListener extends BaseLoadingListener {
const totalFramesCount = this.stack.imageIds.length;
const loadedFramesCount = this.loadedCount;
const loadingFramesCount = totalFramesCount - loadedFramesCount;
const percentComplete = Math.round(
const percentComplete = Math.ceil(
(loadedFramesCount / totalFramesCount) * 100
);
const progressId = this._getProgressId();