* @param {!Event} event * @private
(event)
| 66 | * @private |
| 67 | */ |
| 68 | onTouchStart_(event) { |
| 69 | // P2R won't trigger when document is scrolled. Also can ignore when we are |
| 70 | // already tracking this touch and for non-single-touch events. |
| 71 | if ( |
| 72 | this.tracking_ || |
| 73 | !(event.touches && event.touches.length == 1) || |
| 74 | this.viewport_.getScrollTop() > 0 |
| 75 | ) { |
| 76 | return; |
| 77 | } |
| 78 | |
| 79 | this.startTracking_(event.touches[0].clientY); |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * @param {number} startPos |
nothing calls this directly
no test coverage detected