Skip to content

Commit 2df27a4

Browse files
committed
Resolution adjust
1 parent ecf952e commit 2df27a4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/input/InputManager.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,10 +1120,6 @@ var InputManager = new Class({
11201120

11211121
var tempPoint = this._tempPoint;
11221122

1123-
var cx = camera._cx;
1124-
var cy = camera._cy;
1125-
var cw = camera._cw;
1126-
var ch = camera._ch;
11271123
var csx = camera.scrollX;
11281124
var csy = camera.scrollY;
11291125

@@ -1132,9 +1128,10 @@ var InputManager = new Class({
11321128
var x = pointer.x;
11331129
var y = pointer.y;
11341130

1135-
if (!(x >= cx && y >= cy && x <= cx + cw && y <= cy + ch))
1131+
if (camera.resolution !== 1)
11361132
{
1137-
return output;
1133+
x += camera._x;
1134+
y += camera._y;
11381135
}
11391136

11401137
// Stores the world point inside of tempPoint

0 commit comments

Comments
 (0)