- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs
Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
14 lines
360 B
TypeScript
14 lines
360 B
TypeScript
export default function requestAnimationFrame(fn: FrameRequestCallback) {
|
|
const method = window.requestAnimationFrame ||
|
|
window.webkitRequestAnimationFrame ||
|
|
// @ts-ignore
|
|
window.mozRequestAnimationFrame ||
|
|
// @ts-ignore
|
|
window.msRequestAnimationFrame ||
|
|
function(f) {
|
|
return setTimeout(f, 16);
|
|
};
|
|
|
|
return method(fn);
|
|
};
|