loloof64
04/24/2021, 11:02 AMloloof64
04/24/2021, 11:03 AMloloof64
04/24/2021, 11:03 AMloloof64
04/24/2021, 11:04 AMToast
). But it only works correctly in normal orientation.
In reversed orientation (just after having clicked on the reverse button, and without any device rotation) I still get "1" for the first cellloloof64
04/24/2021, 11:05 AMloloof64
04/24/2021, 11:08 AMloloof64
04/24/2021, 11:10 AMAlbert Chang
04/24/2021, 11:42 AMpointerInput(reversed) { ... }
.loloof64
04/24/2021, 3:23 PMkeys
and has type Any
: does it mean that any variable -state or not- can be passed in if i want the gesture to be updated based on them ?Zach Klippenstein (he/him) [MOD]
04/24/2021, 4:00 PMrememberUpdatedState
with reversed if for some reason you didn’t want to restart your input coroutinesAlbert Chang
04/24/2021, 4:09 PMState
. State
is a value holder which always holds the latest value, but your reversed
is the value itself so when it is captured by the lambda of pointerInput
it won't get updated unless you create a new lambda. This not specific to gestures. It's basically the same as the keys parameter in `remember`/`LaunchedEffect`/`DisposableEffect`.Albert Chang
04/24/2021, 4:10 PMloloof64
04/24/2021, 4:59 PM