Skip to content
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

AG-13915 Add chart option touch.dragAction #3423

Draft
wants to merge 42 commits into
base: latest
Choose a base branch
from

Conversation

olegat added 30 commits January 22, 2025 13:51
This seems to work as intended on the X-axis. The Y-axis has an issue at the
moment (perhaps because the direction of the screen and normalised Y-values is
reversed).

I'll write up my paper math notes once I've got a working solution.
The two-fingers zoompan gesture on the X-axis was working only if the touch[0]
was on the left and touch[1] was on the right. When the positioning of touch[0]
and touch[1] was reversed, so too was the gesture.

Therefore, ensure that x0 <= x1 and a0 <= a1.
There were two bugs:
1)  We don't need to flip the normalised Y value (N - y)
2)  We weren't flipping the screen Y value in 'touchstart'
The variable names `f` and `g` look too much like functions instead of variables.
@olegat olegat added the blocked label Jan 22, 2025
@olegat olegat force-pushed the AG-13915/add_touch_dragAction_chartOption branch from 6b09f2b to 9f5d351 Compare January 22, 2025 16:07
Also, adjust the 'single-finger-touch-dragging' example initial zoom state to
make it quicker to test.
@muhammadalizkhan
Copy link

@olegat IS there any way use to ag chart in nextjs project, i try but its not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants