Skip to content

Add global coordinates broker but keep global cursor transform#791

Merged
jtaala merged 4 commits into
developfrom
global-touch-coords2
Mar 9, 2024
Merged

Add global coordinates broker but keep global cursor transform#791
jtaala merged 4 commits into
developfrom
global-touch-coords2

Conversation

@Thesola10

Copy link
Copy Markdown
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.

Comment thread utils.js
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

jtaala commented Mar 8, 2024

Copy link
Copy Markdown
Collaborator

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

@Thesola10

Copy link
Copy Markdown
Collaborator Author

@jtaala go ahead!

@jtaala jtaala left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread utils.js Outdated
@Thesola10

Copy link
Copy Markdown
Collaborator Author

image

just filed a commit instead

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

@jtaala jtaala left a comment

Copy link
Copy Markdown
Collaborator

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