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:
parent
d07fd3a140
commit
12fec3f7f5
1 changed files with 11 additions and 4 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue