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

feat: add enabled prop to PresentationControls #1096

Conversation

benekoehler
Copy link
Contributor

Why

really nice job with those helpers, i really like your projects!

easily disabling the controls by props wasn't possible before.
i am using a early return to disable the controls. is there a better way?
this pr removes the cursor as well as skips some calculations while dragging if enabled is set to false.

I went ahead and added a story for this component as well :)

What

Checklist

  • Documentation updated
  • Storybook entry added
  • Ready to be merged

@vercel
Copy link

vercel bot commented Oct 13, 2022

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

Name Status Preview Updated
drei ✅ Ready (Inspect) Visit Preview Oct 14, 2022 at 7:32AM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 13, 2022

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 b035cef:

Sandbox Source
youthful-cookies-0qyxwi Configuration
Ground reflections and video textures Configuration
arc-x-pmndrs-colors Configuration

@drcmda
Copy link
Member

drcmda commented Oct 16, 2022

is it ready @benekoehler ?

@benekoehler
Copy link
Contributor Author

from my side: yes

@joshuaellis joshuaellis merged commit c046d08 into pmndrs:master Oct 16, 2022
@github-actions
Copy link

🎉 This PR is included in version 9.35.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

None yet

3 participants