|
|
@ -84,6 +84,9 @@ Item {
|
|
|
|
//check if the mouse goes right or down according to the center
|
|
|
|
//check if the mouse goes right or down according to the center
|
|
|
|
var positiveDirection = ((currentMousePosition - center) >= 0 );
|
|
|
|
var positiveDirection = ((currentMousePosition - center) >= 0 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Qt.application.layoutDirection === Qt.RightToLeft) {
|
|
|
|
|
|
|
|
positiveDirection = !positiveDirection;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//finding the zoom center e.g. for zoom:1.7, calculates 0.35
|
|
|
|
//finding the zoom center e.g. for zoom:1.7, calculates 0.35
|
|
|
|
var zoomCenter = (root.zoomFactor - 1) / 2
|
|
|
|
var zoomCenter = (root.zoomFactor - 1) / 2
|
|
|
|