SynEdit: Prevent some scrolling, while selecting by mouse. Issue #0021996

git-svn-id: trunk@37231 -
This commit is contained in:
martin 2012-05-09 14:14:41 +00:00
parent 273f846e3e
commit df2d3225ef

View File

@ -5824,7 +5824,8 @@ begin
// try to make the current selection visible as well
MinX:=PhysCaretXY.X;
MaxX:=PhysCaretXY.X;
if SelAvail then begin
// sfMouseSelecting: ignore block while selecting by mouse
if SelAvail and not(sfMouseSelecting in fStateFlags) then begin
PhysBlockBeginXY:=LogicalToPhysicalPos(BlockBegin);
PhysBlockEndXY:=LogicalToPhysicalPos(BlockEnd);
if (PhysBlockBeginXY.X<>PhysBlockEndXY.X)