X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/7a218424c6a92eb4979564a7260f862edd46052d..11c398c047d4e737a59c70f13de3cde3a788810a:/ITSpinAndZoomWindowEffect.m?ds=sidebyside diff --git a/ITSpinAndZoomWindowEffect.m b/ITSpinAndZoomWindowEffect.m index 44b3ad3..910a21a 100644 --- a/ITSpinAndZoomWindowEffect.m +++ b/ITSpinAndZoomWindowEffect.m @@ -198,6 +198,8 @@ NSPoint translation; NSRect winFrame = [_window frame]; + scale = MAX(scale, 0.000001); + translation.x = (winFrame.size.width / 2.0); translation.y = (winFrame.size.height / 2.0); transform = CGAffineTransformMakeTranslation(translation.x, translation.y);