* @param {!Document} doc * @param {!./service/viewport/viewport-interface.ViewportInterface} viewport
(doc, viewport)
| 31 | * @param {!./service/viewport/viewport-interface.ViewportInterface} viewport |
| 32 | */ |
| 33 | constructor(doc, viewport) { |
| 34 | /** @private {!Document} */ |
| 35 | this.doc_ = doc; |
| 36 | |
| 37 | /** @private @const */ |
| 38 | this.viewport_ = viewport; |
| 39 | |
| 40 | /** @private {boolean} */ |
| 41 | this.tracking_ = false; |
| 42 | |
| 43 | /** @private {number} */ |
| 44 | this.startPos_ = 0; |
| 45 | |
| 46 | /** @private {!Function} */ |
| 47 | this.boundTouchStart_ = this.onTouchStart_.bind(this); |
| 48 | /** @private {!Function} */ |
| 49 | this.boundTouchMove_ = this.onTouchMove_.bind(this); |
| 50 | /** @private {!Function} */ |
| 51 | this.boundTouchEnd_ = this.onTouchEnd_.bind(this); |
| 52 | /** @private {!Function} */ |
| 53 | this.boundTouchCancel_ = this.onTouchCancel_.bind(this); |
| 54 | |
| 55 | this.doc_.addEventListener('touchstart', this.boundTouchStart_, true); |
| 56 | } |
| 57 | |
| 58 | /** */ |
| 59 | cleanup() { |
nothing calls this directly
no test coverage detected