Fix mouse wheel behavior.

This commit is contained in:
Filippo Scognamiglio
2014-08-27 23:42:45 +02:00
parent 95dce399b5
commit 8313b2a2fd
3 changed files with 13 additions and 15 deletions

View File

@@ -134,8 +134,8 @@ Item{
anchors.fill: parent
onWheel:{
var coord = correctDistortion(wheel.x, wheel.y);
var lines = wheel.angleDelta.y > 0 ? -2 : 2;
kterminal.scrollWheel(coord.width, coord.height, lines);
var lines = wheel.angleDelta.y > 0 ? -1 : 1;
kterminal.scrollWheelEvent(coord, lines);
}
//onClicked: {
// if (mouse.button == Qt.RightButton){