Fixed a bug caused by requestAnimationFrame did not run on the correct content

This commit is contained in:
Dotan Simha
2016-02-08 13:55:10 +02:00
parent 5c21b933df
commit 8212dee9ff

View File

@ -5,7 +5,7 @@ let docEle: any = doc.documentElement;
// requestAnimationFrame is polyfilled for old Android
// within the web-animations polyfill
export const raf = win.requestAnimationFrame;
export const raf = win.requestAnimationFrame.bind(win);
export function rafFrames(framesToWait, callback) {
framesToWait = Math.ceil(framesToWait);