Maximize effect: skip crossfadign on user resizes

a) close to pointless
b) the target resolution texture is invalid if the resize effect is enabled (as the window was not actually resized)

REVIEW: 123901
This commit is contained in:
Thomas Lübking 2015-05-26 22:37:51 +02:00
parent d07fd3a140
commit 12fec3f7f5

View file

@ -58,12 +58,19 @@ var maximizeEffect = {
value1: oldGeometry.x - newGeometry.x - (newGeometry.width / 2 - oldGeometry.width / 2),
value2: oldGeometry.y - newGeometry.y - (newGeometry.height / 2 - oldGeometry.height / 2)
}
}, {
type: Effect.CrossFadePrevious,
to: 1.0,
from: 0.0
}]
});
if (!window.resize) {
animate({
window: window,
duration: maximizeEffect.duration,
animations: [{
type: Effect.CrossFadePrevious,
to: 1.0,
from: 0.0
}]
});
}
},
geometryChange: function (window, oldGeometry) {
"use strict";