Michael Paus
07/28/2023, 12:32 PMval isTouchDevice = remember { <Somehow determine whether running on a touch device or not> }
CompositionLocalProvider(LocalMinimumInteractiveComponentEnforcement provides isTouchDevice) {
<Your code here>
}
I just gave that a try and it really worked nicely. It is even possible to switch that at runtime, so you can let the user decide what his primary input device is.
Just wanted to share that for those who did not already know this like me.Big Chungus
07/28/2023, 1:45 PM