fix: pianoroll isActive still used whole.end
This commit is contained in:
parent
35f5a5d11a
commit
36fa9d81fb
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ export function pianoroll({
|
|||
haps
|
||||
// .filter(inFrame)
|
||||
.forEach((event) => {
|
||||
const isActive = event.whole.begin <= time && event.whole.end > time;
|
||||
const isActive = event.whole.begin <= time && event.endClipped > time;
|
||||
const color = event.value?.color || event.context?.color;
|
||||
ctx.fillStyle = color || inactive;
|
||||
ctx.strokeStyle = color || active;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue