Skip to content

Commit a17ea1f

Browse files
author
lauren mccarthy
committed
moving coord update out of draw so it can happen without draw defined
1 parent 2b84597 commit a17ea1f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/p5.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,13 +200,13 @@ var core = function (require, shim, constants) {
200200
f.call(this);
201201
});
202202
userDraw();
203-
this._updatePMouseCoords();
204-
this._updatePTouchCoords();
205203
this._registeredMethods.post.forEach(function (f) {
206204
f.call(this);
207205
});
208206
this.pop();
209207
}
208+
this._updatePMouseCoords();
209+
this._updatePTouchCoords();
210210
}.bind(this);
211211
this._runFrames = function () {
212212
if (this._updateInterval) {

0 commit comments

Comments
 (0)