I'm trying to create something where if a user long presses on the screen, a button appears at the position of the press (I know how to do this), and while the finger is still down, the button gets pressed. That is, I don't want the user to have to lift their finger after the button reaches their finger's position before they can press it.
Any thoughts on how this can be done, if at all? I need to be able to begin the onPress
event of the button even before the onLongPress
event of the screen has technically ended (I assume it ends once you release your finger)