FreeTube/src/renderer/components/ft-video-player
Emma 551b51341c
Improve touch controls for dash quality selector (#4750)
* Improve touch input on dash quality selector

- Add `touchstart` event to quality button which toggles the `vjs-lock-showing` class used on other quality selectors
- Call `this.handleClick` from touchstart (fixes issue with `e.target` not being correct)

MarmadileManteater/FreeTubeCordova#239

* Hide the dash quality selector on `focusout`

* Use `classList.*` methods over manually editing the attributes

* De-duplicate code

* Add back line break

* Allow scroll on dash quality selector when screen is narrow

* Use flag to determine if user is scrolling or tapping

* hide the quality selector on select

(just like the other quality selectors do on mobile)
2024-03-10 18:00:42 -04:00
..
ft-video-player.css Improve touch controls for dash quality selector (#4750) 2024-03-10 18:00:42 -04:00
ft-video-player.js Improve touch controls for dash quality selector (#4750) 2024-03-10 18:00:42 -04:00
ft-video-player.vue small accessibility improvements (#3033) 2023-01-12 07:55:47 +01:00