Lines Matching refs:scroll
130 tp->scroll.active.h = false;
131 tp->scroll.active.v = false;
132 tp->scroll.duration.h = 0;
133 tp->scroll.duration.v = 0;
134 tp->scroll.vector = zero;
135 tp->scroll.time_prev = 0;
354 tp->device->scroll.buildup = tp_normalize_delta(tp, average);
372 if (tp->scroll.active.h && tp->scroll.active.v)
376 if (tp->scroll.time_prev != 0)
377 tdelta = time - tp->scroll.time_prev;
380 tp->scroll.time_prev = time;
403 vector.x = (tp->scroll.vector.x * vector_decay) + delta_mm.x;
404 vector.y = (tp->scroll.vector.y * vector_decay) + delta_mm.y;
406 tp->scroll.vector = vector;
412 * axes in a single scroll + ability to "break out" and go diagonal.
428 tp->scroll.duration.v += tdelta;
429 if (tp->scroll.duration.v > ACTIVE_THRESHOLD)
430 tp->scroll.duration.v = ACTIVE_THRESHOLD;
432 if (tp->scroll.duration.h > tdelta)
433 tp->scroll.duration.h -= tdelta;
435 tp->scroll.duration.h = 0;
439 tp->scroll.duration.h += tdelta;
440 if (tp->scroll.duration.h > ACTIVE_THRESHOLD)
441 tp->scroll.duration.h = ACTIVE_THRESHOLD;
443 if (tp->scroll.duration.v > tdelta)
444 tp->scroll.duration.v -= tdelta;
446 tp->scroll.duration.v = 0;
450 if (tp->scroll.duration.h == ACTIVE_THRESHOLD) {
451 tp->scroll.active.h = true;
452 if (tp->scroll.duration.v < INACTIVE_THRESHOLD)
453 tp->scroll.active.v = false;
455 if (tp->scroll.duration.v == ACTIVE_THRESHOLD) {
456 tp->scroll.active.v = true;
457 if (tp->scroll.duration.h < INACTIVE_THRESHOLD)
458 tp->scroll.active.h = false;
465 tp->scroll.active.v = true;
466 tp->scroll.active.h = true;
473 if (!tp->scroll.active.h && tp->scroll.active.v)
475 if (tp->scroll.active.h && !tp->scroll.active.v)
479 if (!tp->scroll.active.h && !tp->scroll.active.v) {
531 * happens when the user holds after cancelling a gesture/scroll.
940 * past the timeout, assume scroll/swipe */
954 * or the user is doing "one-finger-scroll," where one touch stays in
999 * we know if it's a pinch or swipe/scroll.
1005 * the same way, this is a scroll or swipe.
1165 if (tp->scroll.method != LIBINPUT_CONFIG_SCROLL_2FG)
1168 /* We may confuse a pinch for a scroll initially,
1179 /* scroll is not accelerated by default */
1339 if (tp->scroll.method != LIBINPUT_CONFIG_SCROLL_2FG)