Skip to content

Commit 5fb0079

Browse files
committed
fix(g-base): remove unnecessary canvas.draw() in timeline, close #191
1 parent 14ff076 commit 5fb0079

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

packages/g-base/src/animate/timeline.ts

-10
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,6 @@ class Timeline {
181181
self.removeAnimator(i);
182182
}
183183
}
184-
const autoDraw = this.canvas.get('autoDraw');
185-
// 非自动更新模式下,需要手动更新
186-
if (!autoDraw) {
187-
this.canvas.draw();
188-
}
189184
}
190185
});
191186
}
@@ -229,11 +224,6 @@ class Timeline {
229224
animator.stopAnimate(toEnd);
230225
});
231226
this.animators = [];
232-
const autoDraw = this.canvas.get('autoDraw');
233-
// 非自动更新模式下,需要手动更新
234-
if (!autoDraw) {
235-
this.canvas.draw();
236-
}
237227
}
238228

239229
/**

0 commit comments

Comments
 (0)