1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-21 10:50:30 +03:00

fix parabolic effect for RTL

This commit is contained in:
Michail Vourlakos 2017-11-28 17:27:20 +02:00
parent f8f78566f9
commit 32c74f818e
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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