diff --git a/src/features/scrollWheelSpeedControl/utils.ts b/src/features/scrollWheelSpeedControl/utils.ts index ba51d0cb..24a338c2 100644 --- a/src/features/scrollWheelSpeedControl/utils.ts +++ b/src/features/scrollWheelSpeedControl/utils.ts @@ -21,7 +21,7 @@ export function adjustSpeed(scrollDelta: number, speedStep: number): Promise<{ n const adjustmentAmount = speedStep * scrollDelta; if (currentPlaybackSpeed + adjustmentAmount > 16 || currentPlaybackSpeed + adjustmentAmount < youtubePlayerMinSpeed) return; const speed = round(currentPlaybackSpeed + adjustmentAmount, 2); - setPlayerSpeed(speed); + await setPlayerSpeed(speed); resolve({ newSpeed: speed, oldSpeed: currentPlaybackSpeed }); })(); });