mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Have View#_redraw() properly redraw the content even if nothing has changed inside.
This commit is contained in:
parent
79f351e5ee
commit
7a5ca5609f
1 changed files with 2 additions and 1 deletions
|
@ -162,13 +162,14 @@ var View = this.View = PaperScopeItem.extend(/** @lends View# */{
|
|||
},
|
||||
|
||||
_redraw: function() {
|
||||
this._redrawNeeded = true;
|
||||
if (this._onFrameCallback) {
|
||||
// If there's a _onFrameCallback, call it staight away,
|
||||
// but without requesting another animation frame.
|
||||
this._onFrameCallback(0, true);
|
||||
} else {
|
||||
// Otherwise simply redraw the view now
|
||||
this.draw(true);
|
||||
this.draw();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue