* @param {!Event} event * @private
(event)
| 105 | * @private |
| 106 | */ |
| 107 | onTouchMove_(event) { |
| 108 | if (!this.tracking_) { |
| 109 | return; |
| 110 | } |
| 111 | |
| 112 | const dy = event.touches[0].clientY - this.startPos_; |
| 113 | |
| 114 | // Immediately cancel the P2R if dragging down. |
| 115 | if (dy > 0) { |
| 116 | event.preventDefault(); |
| 117 | } |
| 118 | |
| 119 | // Stop tracking if there was any motion at all. |
| 120 | if (dy != 0) { |
| 121 | this.stopTracking_(); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | /** |
| 126 | * @param {!Event} unusedEvent |
nothing calls this directly
no test coverage detected