Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClick is called on drag start #8

Open
Lewik opened this issue Jul 24, 2022 · 3 comments
Open

onClick is called on drag start #8

Lewik opened this issue Jul 24, 2022 · 3 comments
Assignees

Comments

@Lewik
Copy link
Collaborator

Lewik commented Jul 24, 2022

onClick is called on pointer down
It leads to onClick execution at drag start

@altavir
Copy link
Member

altavir commented Jul 24, 2022

Yes, I am not sure how to differentiate between them. We can call onClick when the pointer mouse button released instead on down. Will it make sense?

@Lewik
Copy link
Collaborator Author

Lewik commented Jul 24, 2022

Yes, it should call onClick on release and check any move.
Also i found this builtin way:
https://github.com/Lewik/mapview/blob/148dc3508d0b133189d1a68df57a7df056997c84/common/src/desktopMain/kotlin/mapview/canvasGestures.kt

@altavir
Copy link
Member

altavir commented Jul 24, 2022

Thanks, I will try it later

@ArystanK ArystanK self-assigned this Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants