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.
1 parent 9a6421f commit c63c5b7Copy full SHA for c63c5b7
src/core/main.js
@@ -698,14 +698,15 @@ class p5 {
698
// detects capitalization mistakes only ( Setup, SETUP, MouseClicked, etc)
699
p5._checkForUserDefinedFunctions(this);
700
}
701
- // Bind events to window (not using container div bc key events don't work)
+
702
this._updateWindowSize();
703
704
// call any registered init functions
705
this.callRegisteredHooksFor('init');
706
// Set up promise preloads
707
this._setupPromisePreloads();
708
709
+ // Bind events to window (not using container div bc key events don't work)
710
for (const e in this._events) {
711
const f = this[`_on${e}`];
712
if (f) {
0 commit comments