Block pull down gesture in widget edit mode
This commit is contained in:
parent
98da9ea042
commit
c922d62228
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user