Transformables with fling?

Viewed 370

I am trying to implement a composable which allows the user to drag and zoom an image. It seems that the most natural way to implement this is by using the pointerInput or transformable modifiers. However, both do not seem to support fling. If I try it with scrollable instead, then fling works but one can only drag in one orientation at the same time (even if I add scrollable with both orientations).

I think my use case it not completely uncommon (see e.g. MapView, which needs something similar), so I am a bit confused why Jetpack Compose does not support it properly. Am I missing something?

0 Answers
Related