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

Custom prompt #3320

Merged
merged 26 commits into from
May 5, 2022
Merged

Custom prompt #3320

merged 26 commits into from
May 5, 2022

Conversation

elalish
Copy link
Collaborator

@elalish elalish commented Mar 29, 2022

The idea here is to make an API so you can create your own custom interaction prompt, potentially including pan and zoom motions in addition to rotation. It's working here, including an example and docs.

@elalish elalish self-assigned this Mar 29, 2022
@elalish elalish marked this pull request as ready for review April 22, 2022 18:56
@elalish
Copy link
Collaborator Author

elalish commented Apr 28, 2022

Ugh, okay this concept of using synthetic touch events works on Chrome, but not on other browsers - if touch is not supported on a device, they don't let you construct touch events. Looks like I need to switch to PointerEvents first, which I wanted to anyway, but had trouble with last time. I was hoping a synthetic pointer event might trigger a mouse/touch event pair, but alas no.

@elalish
Copy link
Collaborator Author

elalish commented May 5, 2022

@diegoteran @samaneh-kazemi Probably one of you will end up implementing Tomi's custom prompts using this API, so I figured you might be interested in how it works. I'll write up a design doc for it too.

samaneh-kazemi
samaneh-kazemi previously approved these changes May 5, 2022
packages/modelviewer.dev/data/docs.json Show resolved Hide resolved
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