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
On apple devices, scrolling does not work as expected when there is a target area with a listener in the Rive animation. Scrolling does not work when the swipe gesture starts on the target area, otherwise it works as expected. The same behaviour does not seem to occur on android devices.
Steps To Reproduce
Launch the app on a mobile emulator or physical iOS device.
Attempt to scroll by clicking and swiping from the rive animation click target area (indicated by text "Swipe Here" in the demo).
LukasBrits
changed the title
Scrolling not working on iOS devices when the swipe gesture starts on a Rive target area
Scrolling not working as expected on iOS devices
Nov 26, 2024
Resolves#436, and
- https://rive.app/community/forums/support/fsnLLkXUaA62/flutter-scrolling-not-working-as-expected-on-mobile/ft3UcorwBVAf
Our web runtime has a `isTouchScrollEnabled`. This reproduces that behaviour.
```
/// For Rive Listeners, allows scrolling behavior to still occur on Rive
/// widgets when a touch/drag action is performed on touch-enabled devices.
/// Otherwise, scroll behavior may be prevented on touch/drag actions on the
/// widget by default.
///
/// Default `false`.
```
I made some TODOs in the code for future considerations. We might want to opt in to give users more control over which gestures should be registered, and we can potentially be smart about doing this conditionally, depending on what the Rive graphic allows you to do. But this requires more investigation.
https://github.com/user-attachments/assets/81119bed-cb8a-4672-9559-d1c85832bad9
Diffs=
8d1fdd16ad feat: add isTouchScrollEnabled (#8651)
Co-authored-by: Gordon <pggordonhayes@gmail.com>
Description
On apple devices, scrolling does not work as expected when there is a target area with a listener in the Rive animation. Scrolling does not work when the swipe gesture starts on the target area, otherwise it works as expected. The same behaviour does not seem to occur on android devices.
Steps To Reproduce
Source
scroll_test.zip
Expected behavior
Scrolling should work normally when a swipe gesture starts on a Rive animation's target area.
Device & Versions
Additional context
Demo flutter app main.dart file:
The text was updated successfully, but these errors were encountered: