From 7993d87915aebf362ad29f5c00c7ce39959d7127 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Thu, 7 Sep 2023 18:38:08 +0200 Subject: [PATCH] fix issue with divbar function --- src/API.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API.ts b/src/API.ts index 2127cd3..0e2d5ef 100644 --- a/src/API.ts +++ b/src/API.ts @@ -1040,7 +1040,7 @@ export class UserAPI { }; public divbar = (chunk: number): boolean => { - const time_pos = this.app.clock.time_position.bar - 1; + const time_pos = this.app.clock.time_position.bar; const current_chunk = Math.floor(time_pos / chunk); return current_chunk % 2 === 0; };