From bd7c317838743e9d94939db455634481fd456104 Mon Sep 17 00:00:00 2001 From: hdx Date: Fri, 9 Aug 2024 15:45:14 +0800 Subject: [PATCH] =?UTF-8?q?canvas:=20=E7=A7=BB=E9=99=A4=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E5=88=A4=E5=AE=9A=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/canvas/canvas.uvue | 3 --- 1 file changed, 3 deletions(-) diff --git a/pages/component/canvas/canvas.uvue b/pages/component/canvas/canvas.uvue index f791c078..084621b5 100644 --- a/pages/component/canvas/canvas.uvue +++ b/pages/component/canvas/canvas.uvue @@ -161,9 +161,6 @@ context.stroke(path2D); }, startAnimationFrame() { - if (this.taskId > 0) { - this.stopAnimationFrame() - } this.taskId = this.canvasContext!.requestAnimationFrame((timestamp : number) => { this.testFrameCount++ this.updateFPS(timestamp) -- GitLab