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
|
haps
|
||||||
// .filter(inFrame)
|
// .filter(inFrame)
|
||||||
.forEach((event) => {
|
.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;
|
const color = event.value?.color || event.context?.color;
|
||||||
ctx.fillStyle = color || inactive;
|
ctx.fillStyle = color || inactive;
|
||||||
ctx.strokeStyle = color || active;
|
ctx.strokeStyle = color || active;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue