Trying to apply `detectDragGestures` to a Composab...
# compose
t
Trying to apply
detectDragGestures
to a Composable that wraps an
AndroidView
. It ends up glitching as shown in the GIF below. Should I file an issue, or am I doing something wrong? Code is here. Thanks in advance!
h
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1615430699338000 This problem that started with beta02 has already been discussed here. You can find the reported issue on the linked thread.
🙏 1
🙏🏼 1
m
Hi, this is a known issue in beta02. As a workaround, you can try disabling clipChildren on the parent of the
View
:
AndroidView(factory = {...}) { (it.parent as ViewGroup).clipChildren = false }
🙏🏼 1
t
Thank you! Will try that workaround 🙏🏼
Unfortunately the workaround above does not work 😞 . The issue persists.