Skip to content

Commit 2aadd2a

Browse files
committed
Added setScrollFactor method.
1 parent c524200 commit 2aadd2a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

v3/src/components/ScrollFactor.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
var ScrollFactor = {
2+
23
scrollFactorX: 1.0,
34
scrollFactorY: 1.0,
5+
6+
setScrollFactor: function (x, y)
7+
{
8+
if (x === undefined) { x = y; }
9+
10+
this.scrollFactorX = x;
11+
this.scrollFactorY = y;
12+
13+
return this;
14+
}
15+
416
};
517

618
module.exports = ScrollFactor;

0 commit comments

Comments
 (0)