AllanR OP never explained what he needed. And if you look at his previous posts, you'll probably lose any interest in helping him.
It's possible to add a couple of additional events into my version to prevent the situation you described - save TouchID of the finger which is touching the movement buttons, and if this ID is no longer touching the buttons, ignore it. Same with the touch controlling the beacon.