File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
core/ui/src/main/java/com/yapp/ui/extensions Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import androidx.compose.ui.Modifier
1111import androidx.compose.ui.composed
1212import androidx.compose.ui.graphics.Color
1313import androidx.compose.ui.input.pointer.pointerInput
14- import kotlinx.coroutines.coroutineScope
15- import kotlinx.coroutines.launch
1614
1715@Composable
1816fun Modifier.customClickable (
@@ -33,14 +31,10 @@ fun Modifier.customClickable(
3331 this .then(
3432 Modifier
3533 .pointerInput(Unit ) {
36- coroutineScope {
37- launch {
38- detectTapGestures(
39- onTap = { onClick?.invoke() },
40- onLongPress = { onLongClick?.invoke() },
41- )
42- }
43- }
34+ detectTapGestures(
35+ onTap = { onClick?.invoke() },
36+ onLongPress = { onLongClick?.invoke() },
37+ )
4438 }
4539 .indication(interactionSource, rippleIndication),
4640 )
You can’t perform that action at this time.
0 commit comments