fix(engine): AnimationLoop cancelAnimationFrame (#1895)

This commit is contained in:
郭斌勇 2023-12-21 04:27:54 +08:00 committed by GitHub
parent 463b5613cb
commit 0beec2900e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,7 +304,7 @@ export class AnimationLoop {
}
_cancelAnimationFrame() {
if (this._animationFrameId !== null) {
if (this._animationFrameId == null) {
return;
}