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-13839 Single-touch drag (show tooltip) #3411

Open
wants to merge 33 commits into
base: latest
Choose a base branch
from

Conversation

olegat
Copy link
Contributor

@olegat olegat commented Jan 20, 2025

@olegat olegat marked this pull request as ready for review January 20, 2025 15:42
@olegat olegat requested review from alantreadway, rmc-software and a team as code owners January 20, 2025 15:42
Copy link
Contributor

Snapshots automatically updated, please review before merge: diff

@olegat olegat added the blocked label Jan 20, 2025
Copy link
Contributor

Snapshots automatically updated, please review before merge: diff

@olegat olegat force-pushed the AG-13839/single_touch_drag branch from 96d15da to 050522b Compare January 21, 2025 11:25
Copy link
Contributor

Snapshots automatically updated, please review before merge: diff

@olegat olegat force-pushed the AG-13839/single_touch_drag branch from 050522b to 9d77a45 Compare January 21, 2025 11:47
olegat added 20 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.
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.

1 participant