You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have added the code that listen on mouse wheel to change the volume
volume.addEventListener('wheel', (e) => {
e.preventDefault();
// Determine the scroll direction and adjust the volume
if (e.deltaY < 0) {
// Scroll up, increase volume
volume.value = Math.min(100, parseInt(volume.value) + 1);
} else {
// Scroll down, decrease volume
volume.value = Math.max(0, parseInt(volume.value) - 1);
}
// Update the volume display and save the new value
volume_value.innerHTML = volume.value;
store.set(MV_VOL_LSID, volume.value);
});
The text was updated successfully, but these errors were encountered:
zeecoding
changed the title
Voume should change on scrooling the mouse wheel u an d down
Voume should change on scrolling the mouse wheel up an down
Dec 10, 2024
i have added the code that listen on mouse wheel to change the volume
volume.addEventListener('wheel', (e) => {
e.preventDefault();
The text was updated successfully, but these errors were encountered: