1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-20 06:50:28 +03:00

go faster to directRender state

--improve more the parabolic animation and
fix an issue that was based on the time window
between smooth animation and directRender when
the mouse activates the parabolic effect in the
begin.
This commit is contained in:
Michail Vourlakos 2017-05-26 20:26:27 +03:00
parent 5f1f5f102e
commit 05c2123708
3 changed files with 8 additions and 0 deletions

View File

@ -203,6 +203,7 @@ Item{
onZoomScaleChanged: {
if ((zoomScale === root.zoomFactor) && !enableDirectRenderTimer.running && !root.globalDirectRender) {
root.setGlobalDirectRender(true);
enableDirectRenderTimer.start();
}

View File

@ -938,6 +938,12 @@ DragDrop.DropArea {
checkRestoreZoom.start();
}
function setGlobalDirectRender(value) {
if (latteApplet && latteApplet.waitingLaunchers.length > 0)
return;
root.globalDirectRender = value;
}
function updateAutomaticIconSize() {
if ((visibilityManager.normalState && !root.editMode && root.autoDecreaseIconSize)

View File

@ -1355,6 +1355,7 @@ Item {
function startEnableDirectRenderTimer() {
if (latteDock) {
latteDock.setGlobalDirectRender(true);
latteDock.startEnableDirectRenderTimer();
} else {
enableDirectRenderTimer.start();