Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

package org.neotech.app.abysner.presentation.component

import androidx.compose.animation.core.AnimationConstants
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.clickable
import androidx.compose.foundation.horizontalScroll
Expand Down Expand Up @@ -58,7 +59,9 @@ import androidx.compose.ui.text.drawText
import androidx.compose.ui.text.rememberTextMeasurer
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlin.time.Duration.Companion.milliseconds

@OptIn(ExperimentalMaterial3Api::class)
@Composable
Expand Down Expand Up @@ -201,6 +204,9 @@ private fun <T : PathwayButtonItem> SelectableButton(

LaunchedEffect(showEditTooltip) {
if (showEditTooltip) {
// Delay showing the tooltip, to wait for screen animations to settle after
// navigating to this screen or closing a bottom sheet.
delay(AnimationConstants.DefaultDurationMillis.milliseconds)
tooltipState.show()
}
}
Expand Down
Loading