Lines Matching refs:scroll

35    to do a small scroll. */
77 if (tp->scroll.method != LIBINPUT_CONFIG_SCROLL_EDGE)
80 if (t->point.x > tp->scroll.right_edge)
83 if (t->point.y > tp->scroll.bottom_edge)
103 libinput_timer_set(&t->scroll.timer,
113 libinput_timer_cancel(&t->scroll.timer);
115 t->scroll.edge_state = state;
119 t->scroll.edge = EDGE_NONE;
122 t->scroll.edge = tp_touch_get_edge(tp, t);
123 t->scroll.initial = t->point;
129 t->scroll.edge = EDGE_NONE;
159 "edge-scroll: touch %d: unexpected scroll event %d in none state\n",
175 "edge-scroll: touch %d: unexpected scroll event %d in edge new state\n",
180 t->scroll.edge &= tp_touch_get_edge(tp, t);
181 if (!t->scroll.edge)
213 "edge-scroll: touch %d: unexpected scroll event %d in edge state\n",
218 /* If started at the bottom right, decide in which dir to scroll */
219 if (t->scroll.edge == (EDGE_RIGHT | EDGE_BOTTOM)) {
220 t->scroll.edge &= tp_touch_get_edge(tp, t);
221 if (!t->scroll.edge)
250 "unexpected scroll event %d in area state\n",
270 enum tp_edge_scroll_touch_state current = t->scroll.edge_state;
287 if (current != t->scroll.edge_state)
289 "edge-scroll: touch %d state %s → %s → %s\n",
293 edge_state_to_str(t->scroll.edge_state));
316 horizontal scroll area, it takes too much space away. But
329 tp->scroll.right_edge = edges.x;
331 tp->scroll.bottom_edge = edges.y;
333 tp->scroll.bottom_edge = INT_MAX;
344 t->scroll.direction = -1;
345 libinput_timer_init(&t->scroll.timer,
358 libinput_timer_cancel(&t->scroll.timer);
359 libinput_timer_destroy(&t->scroll.timer);
368 if (tp->scroll.method != LIBINPUT_CONFIG_SCROLL_EDGE) {
371 t->scroll.edge_state =
374 t->scroll.edge_state =
437 /* only scroll with the finger in the previous edge */
438 if (t->scroll.edge &&
439 (tp_touch_get_edge(tp, t) & t->scroll.edge) == 0)
442 switch (t->scroll.edge) {
444 if (t->scroll.direction != -1) {
445 /* Send stop scroll event */
448 bit(t->scroll.direction),
450 t->scroll.direction = -1;
468 /* scroll is not accelerated */
471 switch (t->scroll.edge_state) {
475 "unexpected scroll state %d\n",
476 t->scroll.edge_state);
482 t->scroll.initial));
498 t->scroll.direction = axis;
514 if (t->scroll.direction != -1) {
517 bit(t->scroll.direction),
519 t->scroll.direction = -1;
522 t->scroll.edge = EDGE_NONE;
523 t->scroll.edge_state = EDGE_SCROLL_TOUCH_STATE_AREA;
532 return t->scroll.edge_state == EDGE_SCROLL_TOUCH_STATE_AREA;