diff --git a/v3/src/components/ScrollFactor.js b/v3/src/components/ScrollFactor.js index 172fb8b04..c049fa22d 100644 --- a/v3/src/components/ScrollFactor.js +++ b/v3/src/components/ScrollFactor.js @@ -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;