Fix for flipbar and added new example

This commit is contained in:
2023-12-20 00:50:43 +02:00
parent 678b3305ac
commit 14d5c39fbe
2 changed files with 21 additions and 2 deletions

View File

@ -1526,7 +1526,7 @@ export class UserAPI {
};
public flipbar = (chunk: number = 1): boolean => {
let realFlip = chunk * 2;
let realFlip = chunk;
const time_pos = this.app.clock.time_position.bar;
const current_chunk = Math.floor(time_pos / realFlip);
return current_chunk % 2 === 0;