Skip to content

Commit

Permalink
Merge pull request #85 from VampireChicken12/dev
Browse files Browse the repository at this point in the history
fix: scroll wheel volume control settings not updating
  • Loading branch information
VampireChicken12 authored Nov 13, 2023
2 parents 6d4beb2 + 6af585a commit 62ab37f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/features/scrollWheelVolumeControl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ export default async function adjustVolumeOnScrollWheel(): Promise<void> {

// Adjust the volume based on the scroll direction
const scrollDelta = getScrollDirection(wheelEvent.deltaY);

// Wait for the "options" message from the content script
const optionsData = await waitForSpecificMessage("options", "request_data", "content");
if (!optionsData) return;
const {
data: { options }
} = optionsData;
// Adjust the volume based on the scroll direction and options
const { newVolume } = await adjustVolume(scrollDelta, options.volume_adjustment_steps);

Expand Down

0 comments on commit 62ab37f

Please sign in to comment.