fix(lua): allow scrolling of containers in widget full screen mode (#6406)

This commit is contained in:
philmoz
2025-07-01 12:49:10 +10:00
committed by GitHub
parent dd5035e2d6
commit c566634ba2
+1 -1
View File
@@ -1411,7 +1411,7 @@ void LvglWidgetBox::build(lua_State *L)
window->disableForcedScroll();
window->setScrollHandler([=](coord_t x, coord_t y) { pcallFuncWith2Int(L, scrolledFunction, 0, x, y); });
lv_obj_add_flag(window->getLvObj(), LV_OBJ_FLAG_EVENT_BUBBLE);
if (luaScriptManager->isWidget()) {
if (luaScriptManager->isWidget() && !luaScriptManager->isFullscreen()) {
lv_obj_clear_flag(window->getLvObj(), LV_OBJ_FLAG_CLICKABLE);
} else {
lv_obj_set_scroll_dir(window->getLvObj(), scrollDir);