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

Add global coordinates broker but keep global cursor transform #791

Merged
merged 4 commits into from
Mar 9, 2024

Conversation

Thesola10
Copy link
Collaborator

This PR functionally fixes #764 but is non-ideal from a code quality standpoint. The cleaner version and discussion around it is and should remain in #766, this PR is a hotfix.

utils.js Show resolved Hide resolved
This approach calls Utils.getPointerCoords() (the unified touch broker)
when the event starts ONLY. Since the touch tracker fails to update once
the event is "adopted" by a widget, we still need to update the global
cursor's coordinates.

This superficially fixes #764, but REVERT this commit before working on
cleaning up touch handling!
@Thesola10 Thesola10 force-pushed the global-touch-coords2 branch from 5ca1d4f to fbca41f Compare March 8, 2024 10:04
@Thesola10 Thesola10 changed the title Global touch coords2 Add global coordinates broker but keep global cursor transform Mar 8, 2024
@jtaala
Copy link
Collaborator

jtaala commented Mar 8, 2024

@Thesola10 let me know if you when you want me to test/review this one.

@Thesola10
Copy link
Collaborator Author

@jtaala go ahead!

Copy link
Collaborator

@jtaala jtaala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I switched to PaperWM's signal approach (for consistency and it's also easier to destroy/cleanup - for when/if we add more signals to utils.js.

Give it a final test and I'll merge and do a new release.

utils.js Outdated Show resolved Hide resolved
@Thesola10
Copy link
Collaborator Author

image

just filed a commit instead

@Thesola10 Thesola10 requested a review from jtaala March 9, 2024 10:00
Copy link
Collaborator

@jtaala jtaala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, merge when ready.

@jtaala

This comment was marked as resolved.

@Thesola10 Thesola10 force-pushed the global-touch-coords2 branch from cb8dfbb to e05a16a Compare March 9, 2024 11:31
@Thesola10 Thesola10 requested a review from jtaala March 9, 2024 11:32
@jtaala jtaala merged commit 3e0ceca into develop Mar 9, 2024
@jtaala jtaala deleted the global-touch-coords2 branch March 9, 2024 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants