diff --git a/components/_util/raf.ts b/components/_util/raf.ts index e264f7272..160c73c80 100644 --- a/components/_util/raf.ts +++ b/components/_util/raf.ts @@ -1,4 +1,4 @@ -let raf = (callback: FrameRequestCallback) => +setTimeout(callback, 16); +let raf = (callback: FrameRequestCallback) => setTimeout(callback, 16) as any; let caf = (num: number) => clearTimeout(num); if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {