You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you make a Rive component that is interactive it disables the ability to scroll
This is definitely because of a touch event listener combined with a preventDefault that stops it from scrolling
Ideal solution would be:
Instead of preventDefault when you touch the screen, maybe you can check if it is necesarry.
When touching an area in the canvas that has no triggers, just don't disable scroll.
And for the cases where this would be ideal, just add a stopScrollOnTouch: as prop
For now, I just disabled the event listeners and added my own events until this problem is fixed
The text was updated successfully, but these errors were encountered:
Steps to solve the bug cause canvas_advanced_single.mjs is not public and i really hope it gets solved:
There is StateMachineInstance class in canvas_advanced_single.mjs. You need to either change pointerDown() to return an object or create a functions that confirms touching something intractable. (check_interactive()for example)
On line 149 where it checks if "mousedown"/"touchstart", add the new function and if it is interactive, set event.preventDefault()
Remove event.preventDefault() from registerTouchInteractions.ts line 32
This is the same problem as #229
When you make a Rive component that is interactive it disables the ability to scroll
This is definitely because of a
touch event listener
combined with apreventDefault
that stops it from scrollingIdeal solution would be:
Instead of
preventDefault
when you touch the screen, maybe you can check if it is necesarry.When touching an area in the canvas that has no triggers, just don't disable scroll.
And for the cases where this would be ideal, just add a
stopScrollOnTouch:
as propFor now, I just disabled the event listeners and added my own events until this problem is fixed
The text was updated successfully, but these errors were encountered: