Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One simplistic state machine in web/mobile is mouse/swipe motion handling – mousedown transitions into "in motion" state, mousemove tracks that state, mouseup transitions into "finished motion" state, runs event handlers, and transitions again into "idle" state.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: