Skip to content

Commit

Permalink
fix a bug in DragTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
TinyHai committed Mar 22, 2024
1 parent 54540ee commit 9550392
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ fun <T> DragTarget(
content
)
) {
if (!hiddenOnDragging) {
val state = LocalDragDrop.current
if (!hiddenOnDragging || !state.isDragging) {
content()
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9550392

Please sign in to comment.