mirror of
https://github.com/konvajs/konva.git
synced 2026-02-24 20:26:01 +08:00
fix: correct requestAnimationFrame fallback timing from 60ms to 16ms
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user