OLD | NEW |
1 | 1 (function() { |
2 (function() { | |
3 'use strict'; | 2 'use strict'; |
4 | 3 |
5 /** | 4 /** |
6 * The IronDropdownScrollManager is intended to provide a central source | 5 * The IronDropdownScrollManager is intended to provide a central source |
7 * of authority and control over which elements in a document are currently | 6 * of authority and control over which elements in a document are currently |
8 * allowed to scroll. | 7 * allowed to scroll. |
9 */ | 8 */ |
10 | 9 |
11 Polymer.IronDropdownScrollManager = { | 10 Polymer.IronDropdownScrollManager = { |
12 | 11 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 document.body.style.overflowX = this._originalBodyStyles.overflowX; | 197 document.body.style.overflowX = this._originalBodyStyles.overflowX; |
199 document.body.style.overflowY = this._originalBodyStyles.overflowY; | 198 document.body.style.overflowY = this._originalBodyStyles.overflowY; |
200 | 199 |
201 window.removeEventListener('wheel', this._scrollInteractionHandler, true
); | 200 window.removeEventListener('wheel', this._scrollInteractionHandler, true
); |
202 window.removeEventListener('mousewheel', this._scrollInteractionHandler,
true); | 201 window.removeEventListener('mousewheel', this._scrollInteractionHandler,
true); |
203 window.removeEventListener('DOMMouseScroll', this._scrollInteractionHand
ler, true); | 202 window.removeEventListener('DOMMouseScroll', this._scrollInteractionHand
ler, true); |
204 window.removeEventListener('touchmove', this._scrollInteractionHandler,
true); | 203 window.removeEventListener('touchmove', this._scrollInteractionHandler,
true); |
205 document.removeEventListener('keydown', this._scrollInteractionHandler,
true); | 204 document.removeEventListener('keydown', this._scrollInteractionHandler,
true); |
206 } | 205 } |
207 }; | 206 }; |
208 })(); | 207 })(); |
OLD | NEW |