fix: correct requestAnimationFrame fallback timing from 60ms to 16ms

This commit is contained in:
张俊祥
2025-12-18 17:34:40 +08:00
parent 583fccf249
commit 065046a6d4

View File

@@ -429,7 +429,7 @@ var OBJECT_ARRAY = '[object Array]',
const req =
(typeof requestAnimationFrame !== 'undefined' && requestAnimationFrame) ||
function (f) {
setTimeout(f, 60);
setTimeout(f, 16); // 60fps ≈ 16.67ms per frame
};
/**
* @namespace Util