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

How to stop animation on touch #16

Open
netpenthe opened this issue Feb 7, 2022 · 1 comment
Open

How to stop animation on touch #16

netpenthe opened this issue Feb 7, 2022 · 1 comment

Comments

@netpenthe
Copy link

netpenthe commented Feb 7, 2022

Hi,

Thanks for the great work - I'm using the gesture-handler / gesture-detector and it is working well.

I recently added the animation="property: rotation; to: 0 360 0; loop: true; dur: 10000" to a-entity to have the models rotate automatically.

When this happens you can still pinch to zoom but can no longer use one finger to rotate the object

Do you know how to disable the rotation animation on touch?

Thanks in advance!

@AdamVI2
Copy link

AdamVI2 commented Jun 13, 2022

A-Frame always has priority. A-Frame's or look-at will every time prevent gestures.js functions from mixing.

If you want to initially have animation of a model, you may need to pause or disable it or remove entirely when touch is detected. See https://aframe.io/docs/1.3.0/components/animation.html#api for more info on animation events.

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

No branches or pull requests

2 participants