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