a couple of interface bugs fixed

This commit is contained in:
zueuk 2006-10-29 13:44:45 +00:00
parent 6b890ba584
commit c132463c76

View File

@ -640,7 +640,7 @@ begin
// just in case:
SetCaptureControl(nil);
HasChanged := false;
viewDragMode := false;
// viewDragMode := false;
varDragMode := false;
pnlDragMode := false;
CornerCaught := false;
@ -3594,7 +3594,7 @@ begin
EditForm.StatusBar.Panels[2].Text := Format('Zoom: %f', [GraphZoom]);
if viewDragMode then begin
if viewDragMode then begin
sc := GraphZoom * 50;
gCenterX := fx - (p.X - TriangleView.Width/2) / sc;
gCenterY := fy + (p.Y - TriangleView.Height/2) / sc;