Lines Matching refs:threshold
1442 var threshold = 10;1443 if (mousePos >= size - threshold) {1444 return 1 + 5 * (mousePos - (size - threshold)) / threshold;1445 } else if (mousePos <= threshold) {1446 return -1 - 5 * (threshold - mousePos) / threshold;