-
Notifications
You must be signed in to change notification settings - Fork 8
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
Click and hold doesn't work #29
Comments
Thanks for sending over the sample If you're able to, try upgrading to the new version to see if things are working on your end. |
Unfortunately, it still doesn't work in Unity (it works with WebJS). Tested with Rive version .172 and Unity 2023.1,17.f1 Here is a repo (Unity scene is called "test"). |
I found the issue. In RiveScreen.cs the following function is used to detect mouse down: However, that function does not support click and hold. This supports click and hold: Edit: |
I have a button that does not allow click and hold. Unity releases the button as soon as it is pressed down. This is a problem in many platforms. It also doesn't work with React Native. It didn't used to work with Web JS either but it was fixed in the latest version of Web JS.
To reproduce:
Load the included riv file into Unity. The rev is provided too.
nested_bug.zip
Click and keep mouse down on the Next button. You will see that it immediately releases the button.
Now try the same in Web JS (latest version):
https://codesandbox.io/p/sandbox/rive-quick-start-js-forked-5k2xzc
Here you will see that click and hold works.
The text was updated successfully, but these errors were encountered: