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(PresentationControls): cursor effect bug prevents any default cursor behaviors #1445

Merged

Conversation

frankievx
Copy link
Sponsor Contributor

@frankievx frankievx commented May 14, 2023

Why

Fixes #1446

 I ran into a bug where when I disable the PresentationControls it continues to override the cursor="pointer" behavior I had set on the object.

What

This change moves the PresentationControls cursor cleanup effect code into the if statement so that it will avoid overriding any cursor behavior set when PresentationControls is disabled.

Checklist

  • Ready to be merged

@vercel
Copy link

vercel bot commented May 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drei ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2023 11:42pm

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d67b6be:

Sandbox Source
zen-lewin-n2o8jq Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@CodyJasonBennett CodyJasonBennett merged commit 34d3c30 into pmndrs:master May 21, 2023
5 checks passed
@github-actions
Copy link

🎉 This PR is included in version 9.68.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@frankievx frankievx deleted the fix/presentation-controls-cursor-bug branch May 21, 2023 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cursor behavior is forced to default when PresentationControls is disabled
2 participants