We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ccab3a commit e81c32aCopy full SHA for e81c32a
demo/demo.js
@@ -28,7 +28,10 @@ CSS.paintWorklet.addModule('./ripple-worklet.js');
28
29
if (!window.performance) window.performance = { now: Date.now.bind(Date) };
30
31
-if (!window.requestAnimationFrame) window.requestAnimationFrame = function(cb) { return setTimeout(doAnim, 16, cb); };
+if (!window.requestAnimationFrame) {
32
+ window.requestAnimationFrame = function(cb) { return setTimeout(doAnim, 16, cb); };
33
+ window.cancelAnimationFrame = function(req) { clearTimeout(req); }
34
+}
35
function doAnim(cb) { cb(performance.now()); }
36
37
function ripple(button, evt) {
0 commit comments