feat(obj): add scroll x and scroll y properties (#9346)

This commit is contained in:
蒋慧赟
2025-12-20 15:11:39 +08:00
committed by GitHub
parent f238023432
commit 03c43fea76
+8
View File
@@ -150,6 +150,14 @@ static const lv_property_ops_t lv_obj_properties[] = {
.setter = lv_obj_set_scroll_snap_y,
.getter = lv_obj_get_scroll_snap_y,
},
{
.id = LV_PROPERTY_OBJ_SCROLL_X,
.getter = lv_obj_get_scroll_x,
},
{
.id = LV_PROPERTY_OBJ_SCROLL_Y,
.getter = lv_obj_get_scroll_y,
},
{
.id = LV_PROPERTY_OBJ_SCROLL_TOP,
.getter = lv_obj_get_scroll_top,