timeviewer

This commit is contained in:
Andrew Hill 2013-04-04 18:49:45 -04:00
parent 94dd7990ba
commit 4cfc74998f

View File

@ -204,8 +204,10 @@ Torque.modules.layer = function (torque) {
}); });
}, },
advance:function () { advance:function () {
if (this._current < this.end) { if (this._current + this._step < this.end) {
this._current = this._current + this._step; this._current = this._current + this._step;
// } else if (this._current < this.end) {
// this._current = this.end;
} else { } else {
this._current = this.start; this._current = this.start;
} }
@ -216,7 +218,7 @@ Torque.modules.layer = function (torque) {
if (this._current < this.end) { if (this._current < this.end) {
this._current = this._current + this._step this._current = this._current + this._step
if (this.end < this._current) { if (this.end < this._current) {
pause = 2500; pause = 500;
} }
} else { } else {
this._current = this.start; this._current = this.start;