Skip to content

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.

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.

@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.

3 participants