We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5278e6 commit 2b36efbCopy full SHA for 2b36efb
src/core/time.ts
@@ -468,10 +468,9 @@ export class Tag {
468
* @param delay The time interval to add to this time instant.
469
*/
470
getLaterTag(delay: TimeValue | undefined): Tag {
471
- if (delay === undefined) {
+ if (delay === undefined || delay.isZero()) {
472
+ // FIXME: Should a tag + zero returns one microstep after the tag?
473
return this;
- } else if (delay.isZero()) {
474
- return new Tag(this.time, this.microstep + 1);
475
} else {
476
return new Tag(delay.add(this.time), 0);
477
}
0 commit comments