zzz-pc-view 0.0.36 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zzz-pc-view",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "main": "src/index.umd.js",
5
5
  "module": "src/index.es.js",
6
6
  "types": "src/index.d.ts",
package/src/index.es.js CHANGED
@@ -1005,7 +1005,7 @@ class ZDate extends Date {
1005
1005
  }
1006
1006
  const lastResultsIndex = results.length - 1;
1007
1007
  const lastResult = results[lastResultsIndex];
1008
- if (duration > diff) {
1008
+ if (duration / timeConfigs[lastTimeConfigsIndex].step > diff) {
1009
1009
  lastResult[0] = Math.ceil(lastResult[0]);
1010
1010
  if (lastResult[0] > lastResult[1].max) {
1011
1011
  lastResult[0] = 0;
@@ -1019,6 +1019,8 @@ class ZDate extends Date {
1019
1019
  }
1020
1020
  }
1021
1021
  }
1022
+ } else {
1023
+ lastResult[0] = Math.floor(lastResult[0]);
1022
1024
  }
1023
1025
  let firstNotZeroIndex = results.findIndex((result) => result[0] >= 1);
1024
1026
  if (firstNotZeroIndex === -1) {