-
Notifications
You must be signed in to change notification settings - Fork 32
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
OnClick and scrolling not working on touch on mobile browsers #168
Comments
Ahh, sorry you ran into this! I'd recommend working off |
That sounds perfect, thank you! |
Hi @flogst - can you try on |
Hi @zplata, thanks for this. It does solve the scrolling issue, however we have one animation where we use a hover listener from Rive directly. So it's not possible to have both, the hover listener and being able to scroll if the animation is touched on a touchscreen? |
+1 |
@flogst But this has the additional problem that there is no way to dynamically change this parameter. Very often, there is a need for interaction on the PC, but not on the phone. That means there needs to be a way to change the parameter directly, not just at initialization time. |
+1 |
Wassup folks! are there any news on this? |
The changes added in 3.0.40 remove the ability to handle onClick events on a React Canvas on mobile browsers. Scrolling on touch is also not working as expected.
To reproduce, I created two examples.
On version 3.0.39 everything is working as expected:
https://codesandbox.io/s/rive-react-canvas-3-0-39-hdlvx4?file=/src/App.js
On version 3.0.40, onClick and scrolling is not working on touch (you can test it using chrome dev tools with the device toolbar to simulate a touch screen device):
https://codesandbox.io/s/rive-react-canvas-3-0-40-ushr62?file=/src/App.js
I assume this is related to the touch and drag interactions? Is it possible to disable them for touch screens?
The text was updated successfully, but these errors were encountered: