* Detects clicks on the progress bar. * @param {!Event} event
(event)
| 1036 | * @param {!Event} event |
| 1037 | */ |
| 1038 | function onProgressClick(event) { |
| 1039 | // Call this logic once to make sure we still seek if the user just clicks |
| 1040 | // instead of clicking and dragging. |
| 1041 | clearTimeout(hideControlsTimeout); |
| 1042 | onProgressMove(event); |
| 1043 | event.preventDefault(); |
| 1044 | event.stopPropagation(); |
| 1045 | clearInterval(uiTicker); |
| 1046 | document.addEventListener(mouseMoveEvent, onProgressMove); |
| 1047 | document.addEventListener(mouseUpEvent, onProgressClickEnd); |
| 1048 | } |
| 1049 | |
| 1050 | /** |
| 1051 | * Detects the end of interaction on the progress bar. |
nothing calls this directly
no test coverage detected