We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae09118 + b857dc5 commit 444e634Copy full SHA for 444e634
src/core/main.js
@@ -657,9 +657,6 @@ class p5 {
657
}
658
};
659
660
- // ensure correct reporting of window dimensions
661
- this._updateWindowSize();
662
-
663
const friendlyBindGlobal = this._createFriendlyGlobalFunctionBinder();
664
665
// If the user has created a global setup or draw function,
@@ -699,6 +696,7 @@ class p5 {
699
696
p5._checkForUserDefinedFunctions(this);
700
697
701
698
+ // ensure correct reporting of window dimensions
702
this._updateWindowSize();
703
704
// call any registered init functions
0 commit comments