Merge pull request #272 from nathan/zoom-focal-point

Preserved position of top left of scripting area when zooming
This commit is contained in:
Shane M. Clements 2014-06-18 12:31:56 +02:00
commit 594c9ac599

View file

@ -434,6 +434,8 @@ return true; // xxx disable this check for now; it was causing confusion at Scra
}
public function setScale(newScale:Number):void {
x *= newScale / scaleX;
y *= newScale / scaleY;
newScale = Math.max(1/6, Math.min(newScale, 6.0));
scaleX = scaleY = newScale;
updateSize();