the activator

This commit is contained in:
Adam Bradley
2015-07-23 00:51:29 -05:00
parent d67ba6f7c1
commit 96a84e593b
10 changed files with 274 additions and 34 deletions

View File

@ -174,9 +174,9 @@ export function pointerCoord(ev) {
return c;
}
export function hasPointerMoved(tolerance, startCoord, endCoord) {
export function hasPointerMoved(threshold, startCoord, endCoord) {
return startCoord && endCoord &&
(Math.abs(startCoord.x - endCoord.x) > tolerance || Math.abs(startCoord.y - endCoord.y) > tolerance);
(Math.abs(startCoord.x - endCoord.x) > threshold || Math.abs(startCoord.y - endCoord.y) > threshold);
}
export function hasFocus(ele) {