feat: new ghost accent state, new click and hold behaviour for track units

This commit is contained in:
Daniel Ledda
2022-04-03 15:22:17 +02:00
parent 5b8e160608
commit 94e601d563
4 changed files with 41 additions and 33 deletions

View File

@@ -73,7 +73,7 @@ export default class TrackView extends UINode implements ISubscriber<EventTypeSu
view = new TrackUnitView({trackUnit});
this.trackUnitViews.push(view);
view.onHover(() => this.onBeatViewHover(view));
view.onMouseDown((event: MouseEvent) => this.onTrackUnitClick(event.button, i));
view.onMouseUp((event: MouseEvent) => this.onTrackUnitClick(event.button, i));
}
}
}