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
|
implicitWidth: Config.osd.sizes.sliderWidth
|
||||||
implicitHeight: Config.osd.sizes.sliderHeight
|
implicitHeight: Config.osd.sizes.sliderHeight
|
||||||
|
|
||||||
onWheel: event => {
|
function onWheel(event: WheelEvent) {
|
||||||
if (event.angleDelta.y > 0)
|
if (event.angleDelta.y > 0)
|
||||||
Audio.incrementVolume();
|
Audio.incrementVolume();
|
||||||
else if (event.angleDelta.y < 0)
|
else if (event.angleDelta.y < 0)
|
||||||
|
|
@ -55,7 +55,7 @@ Item {
|
||||||
implicitWidth: Config.osd.sizes.sliderWidth
|
implicitWidth: Config.osd.sizes.sliderWidth
|
||||||
implicitHeight: Config.osd.sizes.sliderHeight
|
implicitHeight: Config.osd.sizes.sliderHeight
|
||||||
|
|
||||||
onWheel: event => {
|
function onWheel(event: WheelEvent) {
|
||||||
if (event.angleDelta.y > 0)
|
if (event.angleDelta.y > 0)
|
||||||
Audio.incrementSourceVolume();
|
Audio.incrementSourceVolume();
|
||||||
else if (event.angleDelta.y < 0)
|
else if (event.angleDelta.y < 0)
|
||||||
|
|
@ -80,7 +80,7 @@ Item {
|
||||||
implicitWidth: Config.osd.sizes.sliderWidth
|
implicitWidth: Config.osd.sizes.sliderWidth
|
||||||
implicitHeight: Config.osd.sizes.sliderHeight
|
implicitHeight: Config.osd.sizes.sliderHeight
|
||||||
|
|
||||||
onWheel: event => {
|
function onWheel(event: WheelEvent) {
|
||||||
const monitor = root.monitor;
|
const monitor = root.monitor;
|
||||||
if (!monitor)
|
if (!monitor)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue