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 1818

Summary: TScrollPager keeps dragging after mouse left
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: wayneenterprise
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=16478
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2017-03-14 06:10:01 EDT
The customer sent a video showing the issue here:
http://www.teechart.net/support/download/file.php?id=6420

The same happens when you do the same action leaving the chart and the window from the bottom.

So, the steps to reproduce the issue are:

- Start dragging the TColorBandTool in the TScrollPagerTool.
- Leave the subchart from any side, still dragging the mouse.
- Once the mouse is out of the SubChart, the ColorBand stops moving, but the cursor style is still crHandPoint.
- Releasing the mouse button changes the Cursor style.
- When you get back into the SubChart, the ColorBand jumps to the new position, and the dragging operation continues.

Possible ways to handle it:
- The dragging should completely stop when the mouse leaves the SubChart.
- The ColorBand should continue moving when the mouse is moved out of the SubChart; and the dragging should stop when the mouse us released out of the SubChart.
Comment 1 Bruce 2023-05-11 09:58:51 EDT
This bug is still actual. Besides, it refers to zooming, panning and dragging tools such as TColorLineTool and TColorBandTool even without using TScrollPagerTool and any other tools at all. I'm using the following workaround in the OnMouseLeave event in the case of zooming and panning:

Chart1->Panning->Active = false;

Chart1->Zoom->Active = false;
Chart1->Repaint();

Is there an alternative workaround to stop dragging tools when the cursor leaves the chart?
Comment 2 yeray alonso 2023-12-13 08:30:20 EST
Fixed the 24/05/2023 but forgot to close this ticket.