Fabio Berta
01/27/2023, 2:31 PMlistNode.performTouchInput {
swipeUp(endY = height - 3.dp.toPx())
}
to simulate a scroll. Now this works fine if I'm using higher values than 3dp
but since I want to test a specific edge case, I'd like to use low values. However, by capturing before and after screenshots, I noticed that when using low values like 3.dp
, it doesn't scroll at all. Is there a minimum threshold or something?Kirill Grouchnikov
01/27/2023, 2:51 PMViewConfiguration.get(context).scaledTouchSlop
to verify that thresholdFabio Berta
01/27/2023, 2:53 PMKirill Grouchnikov
01/27/2023, 2:58 PMswipeUp
operates inscaledTouchSlop
so that it works across different devicesFabio Berta
01/27/2023, 3:16 PMKirill Grouchnikov
01/27/2023, 3:51 PMFabio Berta
01/27/2023, 3:55 PM