Skip to content

Commit 0f553c2

Browse files
committed
Added Camera.setScroll
1 parent fae3223 commit 0f553c2

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

v3/src/camera/Camera.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ var Camera = new Class({
8080
setRotation: require('./components/SetRotation'),
8181
setRoundPixels: require('./components/SetRoundPixels'),
8282
setScene: require('./components/SetScene'),
83+
setScroll: require('./components/SetScroll'),
8384
setSize: require('./components/SetSize'),
8485
setViewport: require('./components/SetViewport'),
8586
setZoom: require('./components/SetZoom'),
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var setScroll = function (x, y)
2+
{
3+
if (y === undefined) { y = x; }
4+
5+
this.scrollX = x;
6+
this.scrollY = y;
7+
8+
return this;
9+
};
10+
11+
module.exports = setScroll;

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: 'c4c460d0-73f7-11e7-8118-7df32620cd19'
2+
build: '235baf50-7401-11e7-b446-a357d6bbc2e7'
33
};
44
module.exports = CHECKSUM;

0 commit comments

Comments
 (0)