diff --git a/pages/component/canvas/canvas/ball.uvue b/pages/component/canvas/canvas/ball.uvue index df16a2e5655a37ab4bc5b82d0bdde8855fee2639..4c0aff276a634472c529605fe34896c94c19f8b4 100644 --- a/pages/component/canvas/canvas/ball.uvue +++ b/pages/component/canvas/canvas/ball.uvue @@ -96,20 +96,20 @@ if (!this.runningFlag) { return } - this._animateResult = uni.requestAnimationFrame((_: number) => { + this._animateResult = requestAnimationFrame((_: number) => { this.animate() }) } start() { - uni.cancelAnimationFrame(this._animateResult) + cancelAnimationFrame(this._animateResult) this.runningFlag = true this.animate() } stop() { this.runningFlag = false - uni.cancelAnimationFrame(this._animateResult) + cancelAnimationFrame(this._animateResult) } }