mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Merge pull request #272 from nathan/zoom-focal-point
Preserved position of top left of scripting area when zooming
This commit is contained in:
commit
594c9ac599
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue