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

Differentiate between button pressed and button released in button part #1823

Open
FWeinb opened this issue Jan 20, 2020 · 1 comment
Open

Comments

@FWeinb
Copy link
Contributor

FWeinb commented Jan 20, 2020

I noticed that currently the button part only exposes an event when the button is clicked. I am currently exploring the integration of Lego Powered Up Hubs and would like to build a little remote control inside kano-code. For that to work I would need to distinguish between a button press and a button release.

I could eventually create a PR to add this functionality but would first like to know if you are willing to support this.

@pazdera
Copy link
Contributor

pazdera commented Jan 23, 2020

Hey @FWeinb, I see your point. Having both would certainly be useful. However, in many cases our primary users don't know that buttons usually have two events associated with them – it can be confusing for people trying programming for the first time. For simplicity and to reduce the number of blocks in the toolbox, we've decided to have just onClick which fires on release.

I'll bring this up with the product owners to see what they think about this feature.

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

2 participants