diff --git a/dragdrop/src/main/java/cn/tinyhai/compose/dragdrop/DragTarget.kt b/dragdrop/src/main/java/cn/tinyhai/compose/dragdrop/DragTarget.kt index cdaaffd..ec1fbe6 100644 --- a/dragdrop/src/main/java/cn/tinyhai/compose/dragdrop/DragTarget.kt +++ b/dragdrop/src/main/java/cn/tinyhai/compose/dragdrop/DragTarget.kt @@ -30,7 +30,8 @@ fun DragTarget( content ) ) { - if (!hiddenOnDragging) { + val state = LocalDragDrop.current + if (!hiddenOnDragging || !state.isDragging) { content() } } diff --git a/gradle.properties b/gradle.properties index b93e905..e1512d5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -30,7 +30,7 @@ SONATYPE_AUTOMATIC_RELEASE=true GROUP=cn.tinyhai.compose POM_ARTIFACT_ID=dragdrop -VERSION_NAME=0.3.0 +VERSION_NAME=0.3.1 POM_NAME=ComposeDragDrop POM_DESCRIPTION=Android Jetpack Compose DragDrop library.