Align scrolling to pixels manually

This commit is contained in:
Nicolas Werner 2020-05-13 23:32:39 +02:00
parent 004d10bfee
commit d6981355d3

View file

@ -71,6 +71,8 @@ MouseArea {
pixelDelta = wheel.pixelDelta.y pixelDelta = wheel.pixelDelta.y
} }
pixelDelta = Math.round(pixelDelta)
if (!pixelDelta) { if (!pixelDelta) {
return flickableItem.contentY; return flickableItem.contentY;
} }