mirror of
https://github.com/konvajs/konva.git
synced 2026-01-09 11:34:38 +08:00
Merge pull request #2007 from zjx-git/fix/requestAnimationFrame-fallback-timing
fix: correct requestAnimationFrame fallback timing
This commit is contained in:
@@ -452,7 +452,7 @@ let _isCanvasFarblingActive: boolean | null = null;
|
||||
const req =
|
||||
(typeof requestAnimationFrame !== 'undefined' && requestAnimationFrame) ||
|
||||
function (f) {
|
||||
setTimeout(f, 60);
|
||||
setTimeout(f, 16); // 60fps ≈ 16.67ms per frame
|
||||
};
|
||||
/**
|
||||
* @namespace Util
|
||||
|
||||
Reference in New Issue
Block a user