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

Pan attribute #3286

Merged
merged 9 commits into from
Mar 18, 2022
Merged

Pan attribute #3286

merged 9 commits into from
Mar 18, 2022

Conversation

elalish
Copy link
Collaborator

@elalish elalish commented Mar 17, 2022

Adds enable-pan as an attribute so that no extra JS is needed to enable panning interactions. Pan is limited to the bounding sphere of the model. Tapping on the model focuses on that point, while tapping off the model zooms back to the original framing. When panning, the center point is shown visually (and can be suppressed/changed using the pan-target slot) and when the pan gesture ends, the camera is focused on that model point (if there was a surface under the dot), so that the camera doesn't orbit around a random point in space.

@elalish elalish self-assigned this Mar 17, 2022
@elalish elalish merged commit d12b6ca into master Mar 18, 2022
@elalish elalish deleted the panAttribute branch March 18, 2022 21:11
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