-
Notifications
You must be signed in to change notification settings - Fork 122
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
Rotate on scrollwheel, but don't hijack scrollwheel #78
Comments
to change the scroll axis you have to use the
|
sorry, didn't pay close attention to the question. You want to use the scroll wheel. In that case, use the |
TRhat's... not what I asked at all. I want to scroll down the page, with the cursor over the object, have the object rotate, but the page still scroll down. |
you probably need to implement a custom input module that listens to the scroll event and updates the frame number based on the scroll position. That will for sure work with mousewheel, touch scroll and more importantly the rotation will always be consistent with the scroll position. Take a look at how the wheel plugin is implemented to get the idea |
Here is an example on stackblitz https://stackblitz.com/edit/spritespin-example-scroll?file=index.html |
Basically, I want it to rorate while I'm scrolling down the page, the spritespin instance being fixed position on the page. How can this be acheived.
The text was updated successfully, but these errors were encountered: