fix(sdk/hello): M2.71控件真机bug批次 — 圆形进度脏区+整环修复/Slider拖动/Dialog·Sheet背景快照scrim不叠黑/Disabled圆角α/点击重置息屏/滑动跟手/IME残影·键位·主题配色/List选中点击 (agent-162)
This commit is contained in:
1 parent
b12404a986
commit
b8c36bd33c
14 files changed
+554
-79
No files matched your search
@@ -144,11 +144,18 @@ int main(void)
|
||||
assert(meow_list_hit_index(lc, 30, 480) == ((480 - 460 + 3500) / 40)); /* 可见项换算 */
|
||||
meow_list_set_item_h(lc, 50);
|
||||
assert(meow_widget_hit(lc, 30, 470) == 1);
|
||||
/* M2.71-bug8:行选中 + 命中点击回调 */
|
||||
meow_list_set_selected(lc, 5);
|
||||
assert(meow_list_selected(lc) == 5);
|
||||
/* 验证 tap_at 返回命中下标并置选中 */
|
||||
int hidx = meow_list_tap_at(lc, 30, 480);
|
||||
assert(hidx == ((480 - 460 + meow_list_scroll(lc)) / 50));
|
||||
assert(meow_list_selected(lc) == hidx);
|
||||
/* LazyRow 横向 */
|
||||
meow_widget *lr = W(meow_lazyrow_create(20, 640, 380, 40, 60, 100, list_src, NULL));
|
||||
meow_list_scroll_by(lr, 200);
|
||||
assert(meow_list_hit_index(lr, 40, 660) == ((40 - 20 + 200) / 60));
|
||||
printf("PASS lazy list: scroll clamp/virtualize/hit_index (col+row)\n");
|
||||
printf("PASS lazy list: scroll clamp/virtualize/hit_index/tap_at/select (col+row)\n");
|
||||
|
||||
/* ---------- Dialog / BottomSheet 纯逻辑(create/set/add;show 阻塞故不调) ---------- */
|
||||
meow_dialog *dlg = meow_dialog_create(MEOW_DLG_SELECT, "Pick one");
|
||||
|
||||
Reference in new issue
Block a user