-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[charts-pro] Zoom pointer improvements #17000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…events-improvement
…events-improvement
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
76ab4f5 to
0edea79
Compare
| xAxis={[ | ||
| { | ||
| zoom: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you'r lookig for what triggers the re-render. I'ts probably the xAxis
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
…events-improvement
…events-improvement
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
This pull request has been inactive for 30 days. Please remove the stale label or leave a comment to keep it open. Otherwise, it will be closed in 15 days. |
|
This pull request has been closed due to 15 days of inactivity after being marked stale. |
Resolves #16205
Main change
Use
use-gestureto recognise the gestures. Right now the lib is a bit slow to have updates, but it has some solid behaviour detection.Create a
interaction listenerplugin. This allows us to register events directly in the SVG.The current implementation migrates most of the interactions to the schema below.
Other changes
BarChartPro,LineChartPro, andScatterChartProfireEvent/element.dispatchEvent), but couldn't figure out a way to make it work.usePanOnDrag,useZoomOnPinchanduseZoomOnWheelhooks