Block pull down gesture in widget edit mode

This commit is contained in:
MM20 2022-05-16 20:32:19 +02:00
parent 98da9ea042
commit c922d62228
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -157,6 +157,7 @@ fun PullDownScaffold(
val nestedScrollConnection = remember {
object : NestedScrollConnection {
override fun onPreScroll(available: Offset, source: NestedScrollSource): Offset {
if (isWidgetEditMode) return Offset.Zero
val diff =
(if (isSearchOpen) searchScrollState.value else widgetsScrollState.value) - available.y
val consumed = when {