on Touch End
Handles the end of a touch event. If the touch was a tap, it selects the tape item at the current position. Otherwise, it creates a new tape item and adds it to the controller.
Parameters
paint
The paint object used for drawing the tape.