osd: fix scroll sens
This commit is contained in:
parent
1191af68fb
commit
37c686d5ed
1 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,7 @@ Item {
|
|||
implicitWidth: Config.osd.sizes.sliderWidth
|
||||
implicitHeight: Config.osd.sizes.sliderHeight
|
||||
|
||||
onWheel: event => {
|
||||
function onWheel(event: WheelEvent) {
|
||||
if (event.angleDelta.y > 0)
|
||||
Audio.incrementVolume();
|
||||
else if (event.angleDelta.y < 0)
|
||||
|
|
@ -55,7 +55,7 @@ Item {
|
|||
implicitWidth: Config.osd.sizes.sliderWidth
|
||||
implicitHeight: Config.osd.sizes.sliderHeight
|
||||
|
||||
onWheel: event => {
|
||||
function onWheel(event: WheelEvent) {
|
||||
if (event.angleDelta.y > 0)
|
||||
Audio.incrementSourceVolume();
|
||||
else if (event.angleDelta.y < 0)
|
||||
|
|
@ -80,7 +80,7 @@ Item {
|
|||
implicitWidth: Config.osd.sizes.sliderWidth
|
||||
implicitHeight: Config.osd.sizes.sliderHeight
|
||||
|
||||
onWheel: event => {
|
||||
function onWheel(event: WheelEvent) {
|
||||
const monitor = root.monitor;
|
||||
if (!monitor)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue