*/}}
瀏覽代碼

uil sub detect issue?

YimingWu 5 月之前
父節點
當前提交
60e16a3383
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      la_kernel.c

+ 1 - 1
la_kernel.c

@@ -6714,7 +6714,7 @@ laUiList *la_DetectUiListRecursive(laUiList *uil, int x, int y, int LimH,
         }
 
         if ((ui->Type == _LA_UI_FIXED_GROUP || ui->Type == _LA_UI_TAB) && (ui->Subs.pFirst || ui->Page)){
-            if (ui->Page->HeightCoeff) CPB = ui->B;
+            if (ui->Page->HeightCoeff) CPB = ui->B+ui->Page->PanY;
             else CPB = ui->Page->B;
             if (ui->Page->ScrollerShownV && laIsInBound(x, y, ui->R - LA_SCROLL_W - bt->RP*2, ui->R, ui->Page->U, CPB)){
                 if (ScrollUil) *ScrollUil = ui->Page; if (ParentUi) *ParentUi = ui;