Skip to content

Commit 7aa4d27

Browse files
committed
removing settouchpoints from ontouchend
1 parent 54fca17 commit 7aa4d27

File tree

4 files changed

+5
-27
lines changed

4 files changed

+5
-27
lines changed

lib/p5.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! p5.js v0.3.2 August 16, 2014 */
1+
/*! p5.js v0.3.2 August 17, 2014 */
22
var shim = function (require) {
33
window.requestDraw = function () {
44
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, element) {
@@ -2991,13 +2991,6 @@ var inputmouse = function (require, core, constants) {
29912991
if (!this.isMousePressed) {
29922992
if (typeof context.mouseMoved === 'function') {
29932993
context.mouseMoved(e);
2994-
<<<<<<< HEAD
2995-
} else if (typeof context.touchMoved === 'function') {
2996-
e.preventDefault();
2997-
this.setTouchPoints(e);
2998-
context.touchMoved(e);
2999-
=======
3000-
>>>>>>> e2e3627b5b11113d6d7425704b4c4d54fa4c9f76
30012994
}
30022995
} else {
30032996
if (typeof context.mouseDragged === 'function') {
@@ -3126,7 +3119,6 @@ var inputtouch = function (require, core) {
31263119
};
31273120
p5.prototype.ontouchend = function (e) {
31283121
var context = this._isGlobal ? window : this;
3129-
this.setTouchPoints(e);
31303122
if (typeof context.touchEnded === 'function') {
31313123
e.preventDefault();
31323124
context.touchEnded(e);

lib/p5.min.js

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/input/mouse.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,6 @@ define(function (require) {
199199
if (typeof context.mouseMoved === 'function') {
200200
//e.preventDefault();
201201
context.mouseMoved(e);
202-
<<<<<<< HEAD
203-
} else if (typeof context.touchMoved === 'function') {
204-
e.preventDefault();
205-
this.setTouchPoints(e);
206-
context.touchMoved(e);
207-
=======
208-
>>>>>>> e2e3627b5b11113d6d7425704b4c4d54fa4c9f76
209202
}
210203
}
211204
else {

src/input/touch.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ define(function (require) {
107107
*/
108108
p5.prototype.ontouchend = function(e) {
109109
var context = this._isGlobal ? window : this;
110-
this.setTouchPoints(e);
111110
if (typeof context.touchEnded === 'function') {
112111
e.preventDefault();
113112
context.touchEnded(e);

0 commit comments

Comments
 (0)