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 - zoom rectangle keeps following mouse when you release out of the chart area
Summary: zoom rectangle keeps following mouse when you release out of the chart area
Status: RESOLVED FIXED
Alias: None
Product: HTML5 JavaScript TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-20 09:39 EDT by yeray alonso
Modified: 2018-09-05 05:09 EDT (History)
0 users

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 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