corrected double log of arrow clicked
This commit is contained in:
parent
31620de7ff
commit
3c11aba194
|
@ -262,11 +262,14 @@ L3D.PointerCamera.prototype.onPointerLockChange = function() {
|
|||
L3D.PointerCamera.prototype.update = function(time) {
|
||||
if (this.moving) {
|
||||
this.linearMotion(time);
|
||||
} else if (this.movingHermite) {
|
||||
} else {
|
||||
this.shouldLogCameraAngles = false;
|
||||
if (this.movingHermite) {
|
||||
this.hermiteMotion(time);
|
||||
} else {
|
||||
this.normalMotion(time);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -115,6 +115,9 @@ L3D.CameraSelecter.prototype.update = function(event, y) {
|
|||
|
||||
L3D.CameraSelecter.prototype.click = function(event) {
|
||||
var e;
|
||||
|
||||
if (this.cameras.mainCamera().pointerLocked === false) {
|
||||
|
||||
var newCamera = this.pointedCamera();
|
||||
|
||||
if (newCamera !== undefined && !(newCamera instanceof Coin)) {
|
||||
|
@ -137,6 +140,8 @@ L3D.CameraSelecter.prototype.click = function(event) {
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
L3D.CameraSelecter.prototype.clickPointer = function(event) {
|
||||
|
|
Loading…
Reference in New Issue