Sign in
chromium
/
external
/
github.com
/
web-platform-tests
/
wpt
/
refs/heads/pointerattributes
/
.
/
html
/
user-activation
/
resources
/
utils.js
blob: 06bf01832838098b79a419fb32c4a6ec1657f01f [
file
] [
edit
]
function
delayByFrames
(
f
,
num_frames
)
{
function
recurse
(
depth
)
{
if
(
depth
==
0
)
f
();
else
requestAnimationFrame
(()
=>
recurse
(
depth
-
1
));
}
recurse
(
num_frames
);
}