From 315e2d4437c55605d0c647dbd8e0c36cef22687a Mon Sep 17 00:00:00 2001 From: blikblum Date: Mon, 7 May 2012 16:37:42 +0000 Subject: [PATCH] * Do not auto scroll if mouse pos in header. Issue 21944 git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2421 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- components/virtualtreeview-new/branches/4.8/VirtualTrees.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas index 7a345d1e5..a1f231c3e 100644 --- a/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas +++ b/components/virtualtreeview-new/branches/4.8/VirtualTrees.pas @@ -17882,7 +17882,7 @@ begin if hoVisible in FHeader.FOptions then Dec(Y, FHeader.Height); - if (Y < Integer(FDefaultNodeHeight)) and (FOffsetY <> 0) then + if (Y > 0) and (Y < Integer(FDefaultNodeHeight)) and (FOffsetY <> 0) then Include(Result, sdUp); //todo: probably the code below is bug due to poor timeGetTime implementation