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: raycaster does not work properly when scene is not in full screen #304

Conversation

Tinoooo
Copy link
Contributor

@Tinoooo Tinoooo commented Jun 16, 2023

Fixes

  • Raycaster does not work properly when scene is not in full screen #282
  • pointerMove does now trigger only when the mouse actually moves, not on every requestAnimationFrame callback.
  • The click event behaves now just like in the DOM. That is only if pointerup fired on the same element as pointerdown did before. The click event used to fire in the same cases as pointerup would fire.

Breaking Changes

  • The pointerLeave event does not provide an intersection object, since leaving means no more intersection. 😄

@Tinoooo Tinoooo linked an issue Jun 16, 2023 that may be closed by this pull request
5 tasks
@netlify
Copy link

netlify bot commented Jun 16, 2023

Deploy Preview for tresjs-docs ready!

Name Link
🔨 Latest commit 7766fce
🔍 Latest deploy log https://app.netlify.com/sites/tresjs-docs/deploys/648ff8959bbd9b0008bb4171
😎 Deploy Preview https://deploy-preview-304--tresjs-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 settings.

@Tinoooo Tinoooo changed the title Bugfix/282 raycaster does not work properly when scene is not in full screen fix: raycaster does not work properly when scene is not in full screen Jun 16, 2023
@Tinoooo Tinoooo self-assigned this Jun 16, 2023
@Tinoooo Tinoooo added docs Improvements or additions to documentation core labels Jun 16, 2023
@Tinoooo Tinoooo marked this pull request as ready for review June 16, 2023 16:27
Copy link
Member

@alvarosabu alvarosabu left a comment

Choose a reason for hiding this comment

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

Thanks a lot, @Tinoooo amazing work 👏🏻

@alvarosabu alvarosabu merged commit 20a5b9e into main Jun 19, 2023
@Tinoooo Tinoooo deleted the bugfix/282-raycaster-does-not-work-properly-when-scene-is-not-in-full-screen branch June 19, 2023 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raycaster does not work properly when scene is not in full screen
2 participants