Only consider inputEnabled cameras and removed some old jsdocs

This commit is contained in:
Richard Davey 2017-07-29 02:52:12 +01:00
parent ed59579220
commit fae3223000
2 changed files with 1 additions and 6 deletions

View file

@ -1,10 +1,5 @@
/**
* This will return the local coordinates of the specified displayObject based on the given Pointer.
*
* @method Phaser.Input#getLocalPosition
* @param {Phaser.Sprite|Phaser.Image} gameObject - The DisplayObject to get the local coordinates for.
* @param {Phaser.Pointer} pointer - The Pointer to use in the check against the gameObject.
* @return {Phaser.Point} A point containing the coordinates of the Pointer position relative to the DisplayObject.
*/
var GetTransformedPoint = function (matrix, gameObject, x, y, output)
{

View file

@ -204,7 +204,7 @@ var CameraManager = new Class({
{
var camera = cameras[i];
if (RectangleContains(camera, pointer.x, pointer.y))
if (camera.inputEnabled && RectangleContains(camera, pointer.x, pointer.y))
{
return camera;
}