Pinchable layers » Scaling from the layer’s center
Scaling from the layer’s center
The default of pinchable.centerOrigin
is yes
, which means the layer will scale and rotate from the point between your fingers (the ‘center origin’ of the gesture), as you can see here:
When you switch off centerOrigin
, the layer will scale from its own transform origin. (Which by default is its center, but you can change this.)
# Disabling the center origin
layerA.pinchable.centerOrigin = no