afterZoom method
Realign the transformation controllers value after a nonCoveringZoom (child is smaller than viewport) to make sure it can be displayed correctly
Implementation
@protected
void afterZoom() {
Matrix4 oldValue = transformationController!.value.clone();
Vector3 oldTranslation = oldValue.getTranslation();
bool set = false;
if (inNonCoveringZoomHorizontal) {
oldTranslation.x = 0;
set = true;
}
if (inNonCoveringZoomVertical) {
oldTranslation.y = 0;
set = true;
}
if (set) {
oldValue.setTranslation(oldTranslation);
transformationController!.value = oldValue;
}
}