emanuelen5 / kitchen-timer

0 stars 0 forks source link

Long press #41

Closed nperozzi closed 1 month ago

nperozzi commented 3 months ago

Hi, I implemented a long-press button. This is the goal: A press of over 3 seconds qualifies as a long press. Since it is difficult to tell when you reached 3 secs, I want the user to keep the button pressed and when the 3 secs is reached, the system performs the action. Once the user sees that the action has been performed (ie, receives the feedback that the long press had its effect), the user will release the button. I believe this is how long press works on most devices. Looking forward to hearing what you think :)

I have also implemented the double button press.

PS: I am doing a PS mostly to share this peace of code and discuss it, not cause I believe it is ready to merge.