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: fix setZoomByViewportPoint #1727

Merged
merged 1 commit into from
Jul 9, 2024
Merged

fix: fix setZoomByViewportPoint #1727

merged 1 commit into from
Jul 9, 2024

Conversation

Aarebecca
Copy link
Contributor

setZoomByViewportPoint 在完成缩放后调整相机时,使用了 pan 操作来调整,导致相机视点位置没有同步更新

修正后:

缩放前后都通过 setPosition 和 setFocalPoint 来调整相机和视点位置

@Aarebecca Aarebecca merged commit 6363252 into release Jul 9, 2024
3 checks passed
@Aarebecca Aarebecca deleted the fix/camera branch July 9, 2024 09:55
Aarebecca added a commit that referenced this pull request Jul 9, 2024
* fix: fix setZoomByViewportPoint (#1727)

* chore: commit changeset (#1729)

* chore(release): bump version (#1730)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

1 participant