Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2483 - Zoom rectangle not following mouse in OpenGL
Summary: Zoom rectangle not following mouse in OpenGL
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: OpenGL 3D (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 09:14 EST by yeray alonso
Modified: 2021-11-10 09:14 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2021-11-10 09:14:34 EST
The Zoom rectangle looks accurate when the chart is 2D and there's no zoom, or when the mouse is in the center of the chart.
However, there seems to be some offset when having:

- Chart in 2D with some zoom:

uses Series, TeeGLCanvas;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Canvas:=TGLCanvas.Create;
  Chart1.Legend.Hide;

  Chart1.View3D:=False;
  Chart1.Aspect.Zoom:=70;

  Chart1.AddSeries(TLineSeries).FillSampleValues(5);
end;

- Chart in 3D:

uses Series, TeeGLCanvas;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Canvas:=TGLCanvas.Create;
  Chart1.Legend.Hide;

  Chart1.Aspect.Orthogonal:=False;

  Chart1.AddSeries(TLineSeries).FillSampleValues(5);
end;

Note how the zoom rectangle coordinates look quite correct when the mouse is near the center of the chart, but gets worse as you move to the edges.