model-viewer
model-viewer copied to clipboard
Expose API to cancel currently running custom prompt interactions
With https://github.com/google/model-viewer/pull/3320, we have an API to run custom prompts. We'd like to have an API for interrupting/cancelling a currently running prompt, e.g. modelViewer.cancelInteract()
, which can be used when events outside of the model-viewer are triggered like user scrolls.