When clicking a Thumbnail, then the Thumbnail gets selected. So far, so good.
However, when clicking on the white space OUTSIDE a Thumbnail, then always the thumbnail NEXT to the mouse pointer gets selected:
This behavior is undesirable, as I need to DESELECT all thumbnails when I click on a white space:
procedure TformMain.ImageEnMView1MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
if Button = mbLeft then
var ThisImageIdx := ImageEnMView1.ImageAtPos(X, Y);
if ThisImageIdx = -1 then
So how can I avoid selecting a near thumbnail when clicking on the white space?