trackpadInputPan
@Sampled
fun trackpadInputPan() {
composeTestRule.onNodeWithTag("verticalScrollable").performTrackpadInput {
pan(Offset(0f, 100f))
}
}Sends a pan gesture with the given total offset.
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Robomori
Run Android emulators and devices outside Android Studio.
@Sampled
fun trackpadInputPan() {
composeTestRule.onNodeWithTag("verticalScrollable").performTrackpadInput {
pan(Offset(0f, 100f))
}
}Content updated: