diff --git a/app/TaskFlow/frmMain.vb b/app/TaskFlow/frmMain.vb index 0e9ead8..3833748 100644 --- a/app/TaskFlow/frmMain.vb +++ b/app/TaskFlow/frmMain.vb @@ -3546,15 +3546,14 @@ Public Class frmMain Dim hi As GridHitInfo = view.CalcHitInfo(e.Location) Dim groupRowButtonClicked = (hi.HitTest = GridHitTest.RowGroupButton) ' ===== UNGÜLTIGE CLICKS ABFANGEN ===== + ' Anders als in Item_Scope ist hier KEIN FocusedRowHandle-Fallback sinnvoll: + ' e.Location ist immer aktuell (kein Caching-Problem), und InvalidRowHandle ist + ' hier der normale Fall für legitime Nicht-Zeilen-Klicks (Spaltenkopf, leerer + ' Bereich, FilterPanelCloseButton). Ein Fallback würde solche Klicks fälschlich + ' der aktuell fokussierten Zeile zuordnen. If hi.RowHandle = DevExpress.XtraGrid.GridControl.InvalidRowHandle Then - Dim focused = GridViewWorkflows.FocusedRowHandle - If focused <> DevExpress.XtraGrid.GridControl.InvalidRowHandle Then - LOGGER.Debug($"Item_Scope: hitInfo invalid, falling back to FocusedRowHandle [{focused}]") - ' hitInfo/rowHandle entsprechend neu aufbauen - Else - LOGGER.Warn("⚠️ MouseDown: InvalidRowHandle - ignoring click") - Exit Sub - End If + LOGGER.Debug("MouseDown: InvalidRowHandle - ignoring click") + Exit Sub End If If Not hi.InRow Then