Skip to content

Commit

Permalink
added z indix to canvas modifier to register clicks when palette is h…
Browse files Browse the repository at this point in the history
…idden
  • Loading branch information
Shivam Dhuria authored and Shivam Dhuria committed Feb 5, 2022
1 parent f6193d9 commit cf983de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fun Palette(

BoxWithConstraints(
modifier = Modifier
.zIndex(if (isPaletteDisplayed.value) 0f else -3f)
.zIndex(if (isPaletteDisplayed.value) Float.MAX_VALUE else 0f)
.fillMaxSize()
.pointerInput(Unit) {
detectDragGestures(
Expand Down

0 comments on commit cf983de

Please sign in to comment.