Skip to content

Commit b0a8045

Browse files
committed
Merge pull request #5367 from dotansimha/2.0
fix(raf): run requestAnimationFrame w/ correct context
2 parents 5c21b93 + 8212dee commit b0a8045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ionic/util/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let docEle: any = doc.documentElement;
55

66
// requestAnimationFrame is polyfilled for old Android
77
// within the web-animations polyfill
8-
export const raf = win.requestAnimationFrame;
8+
export const raf = win.requestAnimationFrame.bind(win);
99

1010
export function rafFrames(framesToWait, callback) {
1111
framesToWait = Math.ceil(framesToWait);

0 commit comments

Comments
 (0)