| Index: third_party/polymer/v1_0/components-chromium/app-layout/app-scroll-effects/effects/waterfall-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/app-layout/app-scroll-effects/effects/waterfall-extracted.js b/third_party/polymer/v1_0/components-chromium/app-layout/app-scroll-effects/effects/waterfall-extracted.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a0b133ab8bb9399e488d9cd0544df0b9c023dcae
|
| --- /dev/null
|
| +++ b/third_party/polymer/v1_0/components-chromium/app-layout/app-scroll-effects/effects/waterfall-extracted.js
|
| @@ -0,0 +1,12 @@
|
| +/**
|
| + * Toggles the shadow property in app-header when content is scrolled to create a sense of depth
|
| + * between the element and the content underneath.
|
| + */
|
| + Polymer.AppLayout.registerEffect('waterfall', {
|
| + /**
|
| + * @this Polymer.AppLayout.ElementWithBackground
|
| + */
|
| + run: function run(p, y) {
|
| + this.shadow = this.isOnScreen() && this.isContentBelow();
|
| + }
|
| + });
|
|
|