You have to use the Touch for other things than dragging the screen arround. Have that in mind.
I prefer instance variables for this kind of stuff. Easy to make global, or copying arround on event sheets. Therefor i prefer this way:
https://
drive.google.com/open?id=0B1SSuCVV8v74WXJNYzFYUlNJTDg
Works for mouse and touch. It also does not need a inverted touch to cancel out things.