| OLD | NEW |
| 1 (function() { | 1 (function() { |
| 2 'use strict'; | 2 'use strict'; |
| 3 | 3 |
| 4 var SHADOW_WHEN_SCROLLING = 1; | 4 var SHADOW_WHEN_SCROLLING = 1; |
| 5 var SHADOW_ALWAYS = 2; | 5 var SHADOW_ALWAYS = 2; |
| 6 var MODE_CONFIGS = { | 6 var MODE_CONFIGS = { |
| 7 outerScroll: { | 7 outerScroll: { |
| 8 'scroll': true | 8 'scroll': true |
| 9 }, | 9 }, |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 value: 'tall' | 96 value: 'tall' |
| 97 }, | 97 }, |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * If true, the scroller is at the top | 100 * If true, the scroller is at the top |
| 101 */ | 101 */ |
| 102 atTop: { | 102 atTop: { |
| 103 type: Boolean, | 103 type: Boolean, |
| 104 value: true, | 104 value: true, |
| 105 notify: true, | 105 notify: true, |
| 106 readOnly: true | 106 readOnly: true, |
| 107 reflectToAttribute: true |
| 107 } | 108 } |
| 108 }, | 109 }, |
| 109 | 110 |
| 110 observers: [ | 111 observers: [ |
| 111 '_computeDropShadowHidden(atTop, mode, shadow)' | 112 '_computeDropShadowHidden(atTop, mode, shadow)' |
| 112 ], | 113 ], |
| 113 | 114 |
| 114 ready: function() { | 115 ready: function() { |
| 115 this.scrollHandler = this._scroll.bind(this); | 116 this.scrollHandler = this._scroll.bind(this); |
| 116 }, | 117 }, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 this._keepScrollingState(); | 229 this._keepScrollingState(); |
| 229 this.fire('content-scroll', {target: this.scroller}, {bubbles: false})
; | 230 this.fire('content-scroll', {target: this.scroller}, {bubbles: false})
; |
| 230 }, | 231 }, |
| 231 | 232 |
| 232 _getScrollerForMode: function(mode) { | 233 _getScrollerForMode: function(mode) { |
| 233 return MODE_CONFIGS.outerScroll[mode] ? | 234 return MODE_CONFIGS.outerScroll[mode] ? |
| 234 this : this.$.mainContainer; | 235 this : this.$.mainContainer; |
| 235 } | 236 } |
| 236 }); | 237 }); |
| 237 })(); | 238 })(); |
| OLD | NEW |