trackpadInputScale
fun trackpadInputScale() {
composeTestRule.onNodeWithTag("transformable").performTrackpadInput {
// Performs a scale with a factor of 0.9f, which corresponds to a "zoom out" gesture.
scale(0.9f)
}
}Sends a scale event with the given scaleFactor.
Compose Multiplatform
Ship iOS, desktop, and web apps with Compose
RevenueCat
Add subscriptions to your apps in minutes
fun trackpadInputScale() {
composeTestRule.onNodeWithTag("transformable").performTrackpadInput {
// Performs a scale with a factor of 0.9f, which corresponds to a "zoom out" gesture.
scale(0.9f)
}
}Last updated: