Skip to content

Commit 39140d2

Browse files
committed
Small bounds tweak
1 parent 9438870 commit 39140d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/camera/2d/inc/PreRender.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var PreRender = function ()
2929
{
3030
this.scrollX = boundsX;
3131
}
32-
if (this.scrollX > boundsR)
32+
else if (this.scrollX > boundsR)
3333
{
3434
this.scrollX = boundsR;
3535
}
@@ -38,7 +38,7 @@ var PreRender = function ()
3838
{
3939
this.scrollY = boundsY;
4040
}
41-
if (this.scrollY > boundsB)
41+
else if (this.scrollY > boundsB)
4242
{
4343
this.scrollY = boundsB;
4444
}

0 commit comments

Comments
 (0)