fix parabolic effect for RTL

v0.7
Michail Vourlakos 7 years ago
parent feefb8bd12
commit 19d13ac671

@ -81,6 +81,9 @@ Item {
//check if the mouse goes right or down according to the center
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
var zoomCenter = (root.zoomFactor - 1) / 2

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

Loading…
Cancel
Save