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

fix(synchronizers): support for async event handlers in Synchronizer class. #883

Merged
merged 6 commits into from
Nov 13, 2023

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Nov 10, 2023

Context

Changes & Results

Testing

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

Copy link

netlify bot commented Nov 10, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit 3730326
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/655273f3842d8c00070e8c52
😎 Deploy Preview https://deploy-preview-883--cornerstone-3d-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sedghi sedghi requested a review from wayfarer3130 November 10, 2023 16:29

// if the result is a promise, then add it to the list of promises
// to wait for before setting _ignoreFiredEvents to false
if (result instanceof Promise) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems worthwhile sot hat only event handlers returning promises get waited on.

@IbrahimCSAE
Copy link
Collaborator

IbrahimCSAE commented Nov 13, 2023

I tested this on my end as well and it solved a lot of issues with the crosshairs.

Two issues were resolved:

  • No crosshair gap

image

  • Doubling crosshair lines during rotation

image

Here's a gif of me running the same manual test with the changes to the synchronizers, looks all perfect to me:

ezgif com-optimize

@sedghi sedghi changed the title Add support for async event handlers in Synchronizer class. fix(synchronizers): support for async event handlers in Synchronizer class. Nov 13, 2023
@sedghi sedghi merged commit b012b4b into main Nov 13, 2023
@sedghi sedghi deleted the fix/synchronizer-tmtv branch January 22, 2025 16:05
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