Ask Your Question
0

Is it not possible to employ both combinedClickable and pointerInput for any component in Jetpack Compose?

asked 2022-05-25 11:00:00 +0000

nofretete gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-02-22 08:00:00 +0000

lalupa gravatar image

No, it is not possible to use both combinedClickable and pointerInput at the same time in Jetpack Compose as both of them are intended to be used for handling touch events and clicks. It is recommended to use one of them based on the specific use case.

combinedClickable is used to handle click events on a Composable, while pointerInput provides a low-level API for handling touch events and is useful when building custom gestures or interactions.

Using both of them together can lead to conflicts and unpredictable behavior, so it's best to use them separately depending on the use case.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-05-25 11:00:00 +0000

Seen: 1 times

Last updated: Feb 22 '22