Skip to content

Example for a child which should absorb all gestures and not allow the parents to scroll#1

Open
dkbast wants to merge 2 commits intoguitoof:mainfrom
dkbast:main
Open

Example for a child which should absorb all gestures and not allow the parents to scroll#1
dkbast wants to merge 2 commits intoguitoof:mainfrom
dkbast:main

Conversation

@dkbast
Copy link
Copy Markdown

@dkbast dkbast commented Sep 9, 2022

Here I'm using a signature pad which on mobile should absorb all gestures and not allow the parents to scroll while the signing gesture is active. This only works on touch devices since it's the touch gestures which are competing - on desktop everything works as expected.

The only workaround I could find looks like this and uses a state object to modify the scroll behaviour of the parents:
https://github.com/RomanBase/hand_signature/blob/master/example/lib/scroll_test.dart

image

dkbast and others added 2 commits September 9, 2022 13:49
…s and not allow the parents to scroll while the signing gesture is active
This forces the GestureRecognizer involved in the scrolling area to be rejected by the gesture arena.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant