mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +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
|
// requestAnimationFrame is polyfilled for old Android
|
||||||
// within the web-animations polyfill
|
// within the web-animations polyfill
|
||||||
export const raf = win.requestAnimationFrame;
|
export const raf = win.requestAnimationFrame.bind(win);
|
||||||
|
|
||||||
export function rafFrames(framesToWait, callback) {
|
export function rafFrames(framesToWait, callback) {
|
||||||
framesToWait = Math.ceil(framesToWait);
|
framesToWait = Math.ceil(framesToWait);
|
||||||
|
Reference in New Issue
Block a user