Lines Matching refs:distance1
3266 // if any. distance1 takes precedence over distance2.
3267 int distance1 = 0;
3271 distance1 = left - prevCenter;
3273 distance1 = prevCenter - right;
3278 distance1 = left - prevCenter;
3280 distance1 = prevCenter - right;
3285 distance1 = prevCenter - bottom;
3287 distance1 = top - prevCenter;
3292 distance1 = prevCenter - bottom;
3294 distance1 = top - prevCenter;
3298 if (distance1 < startEventDistance1
3299 || (distance1 == startEventDistance1 && distance2 < startEventDistance2)) {
3301 startEventDistance1 = distance1;