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:
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…
x
Reference in New Issue
Block a user