Ping-pong turns on the last key, and stepped rows hold the key they last passed (#112)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f68941fa3a
commit
cc14988338
7 files changed
+72
-22
No files matched your search
@@ -33,7 +33,10 @@ export class AnimationEditor extends AssetTabEditor<AnimationAsset, TimelineCanv
|
||||
this.playButton = new Button('Play', { width: 64, onClick: () => this.togglePlay() });
|
||||
this.centreButton = new Button('Centre', { onClick: () => this.preview.fit() });
|
||||
const timeline = new TimelineCanvas(state);
|
||||
this.preview = new PreviewCanvas(state, () => timeline.playhead);
|
||||
this.preview = new PreviewCanvas(state, () => ({
|
||||
frame: timeline.playhead,
|
||||
reverse: timeline.playheadReverse,
|
||||
}));
|
||||
timeline.onPlayhead = () => this.preview.redraw();
|
||||
this.mount(timeline, [this.rootPicker, this.addRowButton, this.playButton, this.centreButton]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user