hrishit
hrishit
Had one doubt onmousedown: var context = this._isGlobal ? window : this; this._setProperty('isMousePressed', true); this._setProperty('mouseIsPressed', true); this.setMouseButton(e); ontouchstart: var context = this._isGlobal ? window : this; context.setTouchPoints(e); why are we...
Thanks for the replies. About calling both updateTouchPoints and updateMouseCoords, I think we should call just the relevant functions. i.e. inside mousepressed call updateMouseCoords by default and call updateTouchPoints only...
p5.prototype.ontouchend = function(e) { var context = this._isGlobal ? window : this; this.setTouchPoints(e); ontouchend method sets the touchpoint, wondering why this would be required as the touchpoint would have already...
I've made the changes/fixes and created a pull request on master #319
I cant repro it on p5.js v0.3.2. Should I consider this one code-resolved by some one who forgot to update the issue? Something not related to this but I though...
Asuming when you say touchPressed(), you mean touchStarted().This is because we call preventDefault for touch when touchStarted() is defined. This is to make a new user not take the headache...
@brysonian, you mean ``` executeDefault = context.touchMoved(e); if (executeDefault === false) { e.preventDefault(); } ``` Yes, that makes sense but we cant just check for the value to be false...
Wont trying to access an undefined variable result into a runtime error?
Yes, it wont :). Was thinking of some other reference.
Thanks @brysonian