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

make screenSpaceCameraController zoomFactor public. #12121

Merged
merged 4 commits into from
Aug 13, 2024

Conversation

BeyondBelief96
Copy link
Contributor

Description

This change exposes the zoomFactor property on the ScreenSpaceCameraController, making it public.

This change was originally requested here: #9145 (comment)

However the original author closed his PR. This is simply implementing his changes again.

This change would allow users to customize the zoom factor of the cesium engine. My main use case is to allow mobile users of my application to have an easier time zooming in and out by changing zoom factor, allowing the pinch-to-zoom gestures to have more drastic zoom changes. The current zoom amount per pinch-to-zoom motion is frustratingly slow.

Issue number and link

#7978

Testing plan

Add unit tests.

Author checklist

  • I have submitted a Contributor License Agreement
  • I have added my name to CONTRIBUTORS.md
  • I have updated CHANGES.md with a short summary of my change
  • I have added or updated unit tests to ensure consistent code coverage
  • I have updated the inline documentation, and included code examples where relevant
  • I have performed a self-review of my code

Copy link

Thank you for the pull request, @BeyondBelief96!

✅ We can confirm we have a CLA on file for you.

Copy link
Contributor

@ggetz ggetz left a comment

Choose a reason for hiding this comment

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

Fantastic, thanks @BeyondBelief96! I just have one comment about CHANGES.md and this should be good to go.

CHANGES.md Outdated Show resolved Hide resolved
@BeyondBelief96 BeyondBelief96 requested a review from ggetz August 13, 2024 17:36
@BeyondBelief96
Copy link
Contributor Author

Should be good to go!

@ggetz
Copy link
Contributor

ggetz commented Aug 13, 2024

Awesome, thanks @BeyondBelief96!

@ggetz ggetz merged commit 3efa918 into CesiumGS:main Aug 13, 2024
4 checks passed
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.

2 participants