Hi everyone.Im coding simple snake game with jetpack compose.Im trying this code to detect swipe direction.But i cant detect Y axis everytime.What could be the problem?Anyone have any solutions or suggestions?Thank you
01/19/2021, 2:55 AM
I wonder if you return in those when statements
If so the code would be wrong
Also i wonder if you return the consumed (or was it remained?) gesture correctly
01/19/2021, 3:49 AM
So what should I do?
01/19/2021, 1:36 PM
@Mehmet Peker did you try breakpoints to see if they are getting hit?
01/19/2021, 3:23 PM
I tried Log.d() for this.I can detect horizontal swipe everytime but i cant vertical swipe everytime.
01/19/2021, 3:50 PM
Mehmet, it would be good for you to share the final code.
01/19/2021, 4:44 PM
Not a complicated,just that.When i swipe on Y axis sometimes not called onDrag callback