mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
Fixed a bug caused by requestAnimationFrame did not run on the correct content
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