| Index: chrome/browser/resources/settings/settings_page/settings_animated_pages.js
|
| diff --git a/chrome/browser/resources/settings/settings_page/settings_animated_pages.js b/chrome/browser/resources/settings/settings_page/settings_animated_pages.js
|
| index f5fcf778c74ea574b6d2bab8fc4c5f2074238e32..97d51cd7eb4624e8e380f006b38a4b243f9cb7bd 100644
|
| --- a/chrome/browser/resources/settings/settings_page/settings_animated_pages.js
|
| +++ b/chrome/browser/resources/settings/settings_page/settings_animated_pages.js
|
| @@ -92,12 +92,12 @@ Polymer({
|
| this.ensureSubpageInstance_();
|
|
|
| if (oldRoute) {
|
| - if (oldRoute.isSubpage() && oldRoute.contains(newRoute)) {
|
| - // Slide left for a descendant subpage.
|
| + if (oldRoute.isSubpage() && newRoute.depth > oldRoute.depth) {
|
| + // Slide left for a deeper subpage.
|
| this.$.animatedPages.exitAnimation = 'slide-left-animation';
|
| this.$.animatedPages.entryAnimation = 'slide-from-right-animation';
|
| - } else if (newRoute.contains(oldRoute)) {
|
| - // Slide right for an ancestor subpage.
|
| + } else if (oldRoute.depth > newRoute.depth) {
|
| + // Slide right for a shallower subpage.
|
| this.$.animatedPages.exitAnimation = 'slide-right-animation';
|
| this.$.animatedPages.entryAnimation = 'slide-from-left-animation';
|
| } else {
|
|
|