Skip to content

Commit

Permalink
Fixing drag box (#322)
Browse files Browse the repository at this point in the history
Co-authored-by: CI Bot <[email protected]>
  • Loading branch information
leandroBorgesFerreira and CI Bot authored Feb 3, 2025
1 parent a8efef0 commit 4a1a8a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions application/composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ android {
applicationId = "io.writeopia"
minSdk = 24
targetSdk = 35
versionCode = 17
versionName = "0.5.0"
versionCode = 18
versionName = "0.6.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ fun DragSelectionBox(modifier: Modifier = Modifier, context: @Composable BoxScop
)

Box(
modifier = Modifier.offset(x = x.dp, y = y.dp)
.size(width = width.dp, height = height.dp)
modifier = Modifier.offset(x = x.dp / 2, y = y.dp / 2)
.size(width = width.dp / 2, height = height.dp / 2)
.border(width = 1.dp, color = dragBoxColor, shape = shape)
.background(
color = dragBoxColor.copy(alpha = 0.2F),
Expand Down

0 comments on commit 4a1a8a1

Please sign in to comment.