I've been working around an issue where using TransformGesture with scaling uses the pivot of the RectTransform for the translation by calculating the average between the two touch points and adjusting the pivot on the begin of the TransformStarted event. This works, for the most part.
However, subsequent (two point) scaling events seem to cause a jitter or translation on the beginning and end of the event. I've also noticed that if I enable 'smoothing' on the Transformer, the affect is really erratic.
I cannot seem to figure out what is causing this offset... could it have anything to do with something that is being cached somewhere in TouchScript related to the pivot or center? I've been looking at it a few hours now, and can't quite put my finger on it yet.
I've attached a package without the libraries (using TouchScript 9.0 [import first, then package]), just import and open the scene 'layout_working_01'... then drill down in the hierarchy to the Image. Try running and using a two point touch scale around the letters "HD", then translate the image to the right and do another two point touch scale around the letters "ta"... notice the jitter?
I've also noticed that if I set the display to say 16:9, the very first scaling does not cause a jitter (guess this is because initially the image is centered due to its' size using aspect ratio fitter).. but if I switch the display (while retaining the HD ratio aspect) to say 4:3, the first and all subsequent translations get this jitter.
I enable/disable the scroll rect for good reason.. otherwise things get strange