https://kotlinlang.org logo
#compose
Title
# compose
i

Ian Warwick

02/05/2020, 9:36 PM
Is there something new to consider using
DoubleTapGestureDetector
with
dev04
this seemed to work but now it won't 😞
Copy code
Clickable(onClick = { onClick(element) }) {
            DoubleTapGestureDetector(onDoubleTap = { onDoubleTap(element) }) {
                when (element) {
                    is TextElement -> TextElement(
                        element,
                        isSelected,
                        isEditing
                    )
                    is ShapeElement -> ShapeElement(element, isSelected)
                    is PianoRollElement -> PianoRollElement(element, isSelected)
                }
            }
        }
s

Shep Shapard

02/05/2020, 10:06 PM
Hi, I work on pointer input and gestures in Compose. What is not working exactly? (It is true that currently DoubleTapGestureDetector does not disambiguate with single tap stuff. A solution to that is incoming.)
i

Ian Warwick

02/06/2020, 9:54 AM
ah hey Shep, before when I double tap the event would be raised, but now double tap just does not work
s

Shep Shapard

04/02/2020, 5:52 PM
Hey Ian, I'm bad at slack. Did this ever start working for you again?
2 Views