Chromium Code Reviews| Index: chrome/browser/resources/extensions/extension_options_overlay.js |
| diff --git a/chrome/browser/resources/extensions/extension_options_overlay.js b/chrome/browser/resources/extensions/extension_options_overlay.js |
| index 174e16e63cf2ffb05e315595228c149519c6b1fe..cc62605a0ed2e89debd1909004502a107fe1ff5e 100644 |
| --- a/chrome/browser/resources/extensions/extension_options_overlay.js |
| +++ b/chrome/browser/resources/extensions/extension_options_overlay.js |
| @@ -121,9 +121,10 @@ cr.define('extensions', function() { |
| // the overlay. It is calculated by multiplying the pythagorean distance |
| // between old and the new size (in px) with a constant speed of |
| // 0.25 ms/px. |
| - var animationTime = 0.25 * Math.sqrt( |
| - Math.pow(newWidth - oldWidth, 2) + |
| - Math.pow(newHeight - oldHeight, 2)); |
| + var loading = document.documentElement.classlist.contains('loading'); |
|
Dan Beam
2015/02/04 19:09:30
note: this doesn't work all that well but will whe
|
| + var animationTime = loading ? 0 : |
| + 0.25 * Math.sqrt(Math.pow(newWidth - oldWidth, 2) + |
| + Math.pow(newHeight - oldHeight, 2)); |
| if (animation) { |
| animation.cancel(); |