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.
pull/1/head
Michail Vourlakos 8 years ago
parent 5f1f5f102e
commit 05c2123708

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

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

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

Loading…
Cancel
Save