mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 14:11:25 +02:00
LCL: simplified logic to determine if a muse click may select treeview node, DisplayTextLeft >= DisplayNodeLeft is always true.
git-svn-id: trunk@20566 -
This commit is contained in:
parent
b13605cfeb
commit
75aa932794
@ -4691,8 +4691,7 @@ begin
|
|||||||
// mousedown occured on expand sign -> expand/collapse
|
// mousedown occured on expand sign -> expand/collapse
|
||||||
CursorNode.Expanded:=not CursorNode.Expanded;
|
CursorNode.Expanded:=not CursorNode.Expanded;
|
||||||
end else
|
end else
|
||||||
if (LogicalX >= CursorNode.DisplayTextLeft) or
|
if LogicalX >= CursorNode.DisplayIconLeft then
|
||||||
(LogicalX >= CursorNode.DisplayIconLeft) then
|
|
||||||
begin
|
begin
|
||||||
// mousedown occured in text or icon
|
// mousedown occured in text or icon
|
||||||
// -> select node and begin drag operation
|
// -> select node and begin drag operation
|
||||||
|
Loading…
Reference in New Issue
Block a user