Skip to content

Commit 5ec6d54

Browse files
author
Lauren McCarthy
committed
adding touch elt specific methods
1 parent 6287365 commit 5ec6d54

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/p5.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ var core = function (require, shim, constants) {
117117
'touchstart': null,
118118
'touchmove': null,
119119
'touchend': null,
120-
'resize': null
120+
'resize': null,
121+
'blur': null
121122
};
122123
this._loadingScreenId = 'p5_loading';
123124
this._start = function () {
@@ -3121,6 +3122,9 @@ var inputkeyboard = function (require, core) {
31213122
}
31223123
}
31233124
};
3125+
p5.prototype.onblur = function (e) {
3126+
downKeys = {};
3127+
};
31243128
p5.prototype.keyIsDown = function (code) {
31253129
return downKeys[code];
31263130
};

0 commit comments

Comments
 (0)