This commit is contained in:
Araxeus
2021-11-01 16:02:27 +02:00
parent 6243e6fd48
commit 29d5b3c7db

View File

@ -62,7 +62,7 @@ const setupSliderListeners = () => {
}
// e.deltaY < 0 means wheel-up
playbackSpeed = roundToTwo(e.deltaY < 0 ?
math.min(playbackSpeed + 0.01, MAX_PLAYBACK_SPEED) :
Math.min(playbackSpeed + 0.01, MAX_PLAYBACK_SPEED) :
Math.max(playbackSpeed - 0.01, MIN_PLAYBACK_SPEED)
);