Multiply scrollFactor to wheel.pixelDelta
This commit is contained in:
parent
3094e47a99
commit
1bad1e1106
|
@ -33,7 +33,7 @@ MouseArea {
|
||||||
// low resolution trackpads.
|
// low resolution trackpads.
|
||||||
// When higher pixelDelta, more scroll will be applied
|
// When higher pixelDelta, more scroll will be applied
|
||||||
const pixelDelta =
|
const pixelDelta =
|
||||||
wheel.pixelDelta.y ||
|
wheel.pixelDelta.y * scrollFactor ||
|
||||||
wheel.angleDelta.y /
|
wheel.angleDelta.y /
|
||||||
24 *
|
24 *
|
||||||
Qt.styleHints.wheelScrollLines *
|
Qt.styleHints.wheelScrollLines *
|
||||||
|
|
Loading…
Reference in New Issue
Block a user