Home
last modified time | relevance | path

Searched refs:snap_point (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.7.0/src/core/
Dlv_indev_scroll.c616 lv_coord_t snap_point = 0; in elastic_diff() local
625snap_point = pad_left + (lv_area_get_width(&scroll_obj->coords) - pad_left - pad_right) / 2 + scro… in elastic_diff()
629 snap_point = scroll_obj->coords.x1 + pad_left; in elastic_diff()
633 snap_point = scroll_obj->coords.x2 - pad_right; in elastic_diff()
644snap_point = pad_top + (lv_area_get_height(&scroll_obj->coords) - pad_top - pad_bottom) / 2 + scro… in elastic_diff()
648 snap_point = scroll_obj->coords.y1 + pad_top; in elastic_diff()
652 snap_point = scroll_obj->coords.y2 - pad_bottom; in elastic_diff()
659 if(snap != LV_SCROLL_SNAP_NONE && act_obj_point > snap_point) return diff; in elastic_diff()
667 if(snap != LV_SCROLL_SNAP_NONE && act_obj_point < snap_point) return diff; in elastic_diff()