diff --git a/src/constants.ts b/src/constants.ts index 0c79ac3..1869d43 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,3 +1,3 @@ export const doc = document; export const htmlElement = doc.documentElement; -export const $raf = requestAnimationFrame; +export const $raf = requestAnimationFrame.bind(window);