implement tcping

This commit is contained in:
LouisLam
2021-07-01 14:03:06 +08:00
parent 84c21b71c0
commit 9c653c3d05
8 changed files with 58 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ export default {
let frames = 12;
let step = Math.floor(diff / frames);
if ((diff > 0 && step < 1) || (diff < 0 && step > 1) || diff === 0) {
if (! this.isNum || (diff > 0 && step < 1) || (diff < 0 && step > 1) || diff === 0) {
// Lazy to NOT this condition, hahaha.
} else {
for (let i = 1; i < frames; i++) {