fix interval per tickOM

This commit is contained in:
Robin Appelman 2023-04-29 16:36:24 +02:00
commit 7a2f4d1af0
4 changed files with 11 additions and 8 deletions

View file

@ -8,12 +8,13 @@ export interface TimelineProps {
}
export const Timeline = ({parser, tick, onSetTick, disabled}) => {
const background = <TimeLineBackground parser={parser}/>;
return <div class="timeline">
<input max={parser.demo.tickCount} value={tick} class="timeline-progress" type="range" min={0}
onChange={(event) => {onSetTick(parseInt(event.target.value, 10))}}
disabled={disabled}
/>
<TimeLineBackground parser={parser}/>
{background}
</div>;
}