mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 11:19:21 +02:00
TExtendedNotebook: remove workaround for issue #19914
git-svn-id: trunk@35226 -
This commit is contained in:
parent
31fdb216bc
commit
1829efd0bd
@ -172,25 +172,11 @@ Begin
|
||||
end;
|
||||
|
||||
procedure TExtendedNotebook.MouseUp(Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
|
||||
{$IFnDEF LCLWIN32}
|
||||
var
|
||||
MouseUpTabIndex: LongInt;
|
||||
{$ENDIF}
|
||||
begin
|
||||
{$IFDEF ExtNBookDebug}debugln(['TExtendedNotebook.MouseUp']);{$ENDIF}
|
||||
MouseCapture := False;
|
||||
InitDrag;
|
||||
inherited MouseUp(Button, Shift, X, Y);
|
||||
{$IFnDEF LCLWIN32}
|
||||
if not FTabDragged then begin
|
||||
// no drag => check for normal click and activate page
|
||||
MouseUpTabIndex := TabIndexAtClientPos(Point(X,Y));
|
||||
if (Button = mbLeft) and (FMouseDownIndex = MouseUpTabIndex) and
|
||||
(FDraggingTabIndex >= 0)
|
||||
then
|
||||
PageIndex:=MouseUpTabIndex;
|
||||
end;
|
||||
{$ENDIF}
|
||||
FMouseDownIndex := -1;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user