rAF is related to timeupdate, not currentTime specifically

pull/922/head
Rich Harris 8 years ago
parent 722e3864f6
commit aa96812713

@ -216,7 +216,7 @@ export default function addBindings(
// fire too infrequently, so we need to take matters into our // fire too infrequently, so we need to take matters into our
// own hands // own hands
let animation_frame; let animation_frame;
if (group.bindings.find(binding => binding.name === 'currentTime')) { if (group.events[0] === 'timeupdate') {
animation_frame = block.getUniqueName(`${node.var}_animationframe`); animation_frame = block.getUniqueName(`${node.var}_animationframe`);
block.addVariable(animation_frame); block.addVariable(animation_frame);
} }

Loading…
Cancel
Save