Added setScrollFactor method.

This commit is contained in:
photonstorm 2017-06-26 13:17:31 +01:00
parent c5242004c4
commit 2aadd2ac79

View file

@ -1,6 +1,18 @@
var ScrollFactor = {
scrollFactorX: 1.0,
scrollFactorY: 1.0,
setScrollFactor: function (x, y)
{
if (x === undefined) { x = y; }
this.scrollFactorX = x;
this.scrollFactorY = y;
return this;
}
};
module.exports = ScrollFactor;