mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
Merge pull request #5367 from dotansimha/2.0
fix(raf): run requestAnimationFrame w/ correct context
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user