mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fixed on click behavior and added touchmove handler
This commit is contained in:
parent
249d9d6cf5
commit
77a23c74d9
3 changed files with 23 additions and 3 deletions
|
@ -186,12 +186,20 @@ define(['require', 'datetime', 'itemHelper', 'events', 'browser', 'imageLoader',
|
|||
volumeSliderContainer.classList.remove('hide');
|
||||
}
|
||||
|
||||
volumeSlider.addEventListener('mousemove', function () {
|
||||
|
||||
volumeSlider.addEventListener('change', function () {
|
||||
if (currentPlayer) {
|
||||
currentPlayer.setVolume(this.value);
|
||||
}
|
||||
});
|
||||
volumeSlider.addEventListener('mousemove', function () {
|
||||
if (currentPlayer) {
|
||||
currentPlayer.setVolume(this.value);
|
||||
}
|
||||
});
|
||||
volumeSlider.addEventListener('touchmove', function () {
|
||||
if (currentPlayer) {
|
||||
currentPlayer.setVolume(this.value);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
positionSlider = elem.querySelector('.nowPlayingBarPositionSlider');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue