Problem is that your different paralax is influencing touch.x and y.
Thats why you must take it into account.
Adding scroll.x/y - originalwindowheight/width should do it, I believe.
Try to put into your line 4 this expressions:
angle(Touch.X - (scrollx - OriginalWindowWidth/2), Touch.Y - (scrolly - OriginalWindowHeight/2), Gear.X, Gear.Y)
min(abs(distance(Touch.X- (scrollx - OriginalWindowWidth/2), Touch.Y- (scrolly - OriginalWindowHeight/2), Gear.X, Gear.Y)) / 1, 100)