We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beb70a2 commit 09548c7Copy full SHA for 09548c7
1 file changed
dist/index.js
@@ -125,11 +125,16 @@ var resource = function resource(ripple) {
125
// batch renders on render frames
126
var batch = function batch(ripple) {
127
return function (el) {
128
- return el.pending ? el.pending.push(ripple.change) : (el.pending = [ripple.change], requestAnimationFrame(function (d) {
129
- el.change = el.pending;
130
- delete el.pending;
131
- ripple.render(el);
132
- }));
+ if (!el.pending) {
+ el.pending = [];
+ requestAnimationFrame(function (d) {
+ el.changes = el.pending;
+ delete el.pending;
133
+ ripple.render(el);
134
+ });
135
+ }
136
+
137
+ if (ripple.change) el.pending.push(ripple.change[1]);
138
};
139
140
0 commit comments