|
@@ -190,9 +190,9 @@ export class SCanvasView extends SObject {
|
|
|
/** painter对象 */
|
|
|
let ctx = this.canvas;
|
|
|
if (null != ctx && this._needDraw) {
|
|
|
+ this._needDraw = false;
|
|
|
let painter = new SPainter(this);
|
|
|
this.onDraw(painter);
|
|
|
- this._needDraw = false;
|
|
|
}
|
|
|
this.requestAnimationFrame(this.loop.bind(this));
|
|
|
} // Function loop()
|