修复content无法选中单元格的问题

This commit is contained in:
2026-07-29 14:14:17 +08:00
parent 5917c0361b
commit 71f5004484
4 changed files with 55 additions and 16 deletions
@@ -21,7 +21,13 @@ namespace XericUI.XTable.Rendering.Component
m_LastSelectionPointer = screenPoint;
m_SelectionPointerCamera = eventCamera;
if (TryGetCellFromScreenPoint(source, screenPoint, eventCamera, true, out int row, out int col))
SetNormalizedSelection(SelectionHandle.StartRow, SelectionHandle.StartCol, row, col);
UpdateSelectionDragToCell(row, col);
}
internal void UpdateSelectionDragToCell(int row, int col)
{
if (!m_SelectionDragActive) return;
SetNormalizedSelection(SelectionHandle.StartRow, SelectionHandle.StartCol, row, col);
}
internal void NormalizeAndSelect(int startRow, int startCol, int endRow, int endCol) =>