Morphingpopups: Don't skip small steps

Resize may happen in smaller steps, so we should not skip them.

REVIEW: 127137
This commit is contained in:
David Rosca 2016-02-23 19:13:45 +01:00
parent 5b945d2b1c
commit a982367a75

View file

@ -46,9 +46,6 @@ var morphingEffect = {
if (distance > (newGeometry.width + newGeometry.height) * 2) {
return;
//Also don't animate very small steps
} else if (distance < 10) {
return;
}
//don't resize it "too much", set as four times