Skip to content

Commit 7b60ff6

Browse files
author
lauren mccarthy
committed
fixing white flash on canvas resize closes #386
1 parent c25e4c7 commit 7b60ff6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

lib/p5.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3991,6 +3991,7 @@ var renderingrendering = function (require, core, constants) {
39913991
if (this._defaultGraphics) {
39923992
this._defaultGraphics.resize(w, h);
39933993
this._defaultGraphics._applyDefaults();
3994+
this.redraw();
39943995
}
39953996
};
39963997
p5.prototype.noCanvas = function () {

0 commit comments

Comments
 (0)