Skip to content

Commit 2e05cab

Browse files
committed
Added setZoom method.
1 parent bf942f6 commit 2e05cab

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/dom/ScaleManager.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,18 @@ var ScaleManager = new Class({
335335
this.refresh();
336336
},
337337

338+
setZoom: function (value)
339+
{
340+
if (value !== this.zoom)
341+
{
342+
this.zoom = value;
343+
344+
this.refresh();
345+
}
346+
347+
return this;
348+
},
349+
338350
/**
339351
* Game Resize event.
340352
*

0 commit comments

Comments
 (0)