diff options
Diffstat (limited to 'components/timeinput.tsx')
-rw-r--r-- | components/timeinput.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/timeinput.tsx b/components/timeinput.tsx index f1f3233..86f3060 100644 --- a/components/timeinput.tsx +++ b/components/timeinput.tsx @@ -22,5 +22,12 @@ export default function TimecodeInput(props: { if (e.key == 'ArrowUp') props.update(props.value + mod); if (e.key == 'ArrowDown') props.update(props.value - mod); }} + onWheel={e => { + var mod = 1; + if (e.shiftKey) mod = 10; + + if (e.deltaY < 0) props.update(props.value + mod); + if (e.deltaY > 0) props.update(props.value - mod); + }} />; } |