Skip to content

Commit

Permalink
Fixed #105 Added 10px tolerance in touch,js to select item
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Garbarino committed Dec 30, 2014
1 parent 84c5c75 commit e7dc47b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Touch.js
Expand Up @@ -170,7 +170,12 @@ define(["dojo/_base/array", "dojo/_base/lang", "dojo/_base/declare", "dojo/dom",
}
}

p.touchMoved = true;
// 10px tolerance to select the item (#105)
if(!p.touchMoved &&
(Math.abs(touch.x - p.start.x) > 10 ||
Math.abs(touch.y - p.start.y) > 10)) {
p.touchMoved = true;
}

if(this._editingGesture){

Expand Down

0 comments on commit e7dc47b

Please sign in to comment.