MotionScrollApp for Android
Demonstration scroll by motion sensor for Android. Tap the sensor button at the bottom left, and tilt it forward to scroll down, or tilt it backward to scroll up.
SVID_20231021_025037_1.mp4
Tips
Action while pressing
Box(modifier = Modifier.pointerInput(Unit) {
detectTapGestures(
onPress = {
// isPressing
tryAwaitRelease() // release
}
)
}