korlibs / korlibs/korge

Android device: onClick event is about previous click

Open
#772 6 comments 0 reactions 1 assignee Claimed by @soywiz View on GitHub
bug check
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

Developing an app based on https://github.com/korlibs/korge-hello-world I noticed that sometimes touching a view on a physical Android device doesn't work (not shown in onClick event of the view),
Then I found out that next touch of another view results in onClick event of previously touched view.
And so on: on a touch previous event appears.
The same problem on my Android 7 and 11 physical devices.

This problem doesn't occur on Android emulators (and on JVM), where I use PC's mouse to "touch" that views.

The problem is easily reproduced and traced using statements like this:

Console.log("Logo clicked")

I understand that korlibs v.1.* on which current version of korge-hello-world is based, aren't fixed anymore, so I'm waiting for the korge-hello-world to be updated to use KorGe 2.0, so I will reproduce (or not) the problem there.

For the reference, my app is this: https://github.com/andstatus/game2048 , the same problem is reproduced in the sample app https://github.com/RezMike/2048

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.