mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Revert commit to prevent bounce when the wheel mouse is used
This commit is contained in:
parent
67b7c4adc9
commit
685d70c624
@ -756,6 +756,17 @@ Rectangle {
|
|||||||
grid.cellWidth = cWidth + Math.floor(rest / wholeCells);
|
grid.cellWidth = cWidth + Math.floor(rest / wholeCells);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WheelHandler {
|
||||||
|
onWheel: {
|
||||||
|
if (grid.contentHeight <= grid.height) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var newValue = Math.min((grid.contentHeight - grid.height - (showCurrentComic ? 270 : 20)), (Math.max(grid.originY , grid.contentY - event.angleDelta.y)));
|
||||||
|
grid.contentY = newValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ScrollBar.vertical: ScrollBar {
|
ScrollBar.vertical: ScrollBar {
|
||||||
visible: grid.contentHeight > grid.height
|
visible: grid.contentHeight > grid.height
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user