fix parabolic effect for RTL

pull/2/head
Michail Vourlakos 7 years ago
parent f8f78566f9
commit 32c74f818e

@ -84,6 +84,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

@ -88,6 +88,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