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 2046

Summary: zoom rectangle keeps following mouse when you release out of the chart area
Product: HTML5 JavaScript TeeChart Reporter: yeray alonso <yeray>
Component: ChartAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2018-06-20 09:39:10 EDT
If you zoom out from the Chart area, the rectangle keeps following the cursor also if you release the mouse.

Reproduced in Edge and Chrome in the live demo, ie this one:

https://www.steema.com/files/public/teechart/html5/latest/demos/series/bar/volume.htm

Can't be reproduced in Firefox.
Comment 1 yeray alonso 2018-09-05 05:09:25 EDT
It seems Chrome doesn't support setCapture.

Using Pointer events (PointerEvent interface) instead of (MouseEvent interface) as recommended at MDN (link below), and using setPointerCapture(event.pointerId) and releasePointerCapture(event.pointerId) seems to work fine.

https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture