mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
fix interval per tickOM
This commit is contained in:
parent
e94f0474ef
commit
7a2f4d1af0
4 changed files with 11 additions and 8 deletions
|
|
@ -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>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue