This commit is contained in:
Joeri Exelmans 2025-10-24 01:14:48 +02:00
parent 41b2de7529
commit 913a7f1275

View file

@ -114,7 +114,7 @@ export const TopPanel = memo(function TopPanel({trace, time, setTime, onUndo, on
const onSlower = useCallback(() => { const onSlower = useCallback(() => {
onTimeScaleChange((timescale/2).toString(), Math.round(performance.now())); onTimeScaleChange((timescale/2).toString(), Math.round(performance.now()));
}, [onTimeScaleChange]); }, [onTimeScaleChange, timescale]);
const onFaster = useCallback(() => { const onFaster = useCallback(() => {
onTimeScaleChange((timescale*2).toString(), Math.round(performance.now())); onTimeScaleChange((timescale*2).toString(), Math.round(performance.now()));
}, [onTimeScaleChange, timescale]); }, [onTimeScaleChange, timescale]);