From 8a868f91092f5fa0f42478942485050ae464d556 Mon Sep 17 00:00:00 2001 From: Sparky Date: Sat, 2 Feb 2019 12:26:08 -0500 Subject: [PATCH] Partial fix for music Same problems as video when on nowplaying.html, all other pages are still behaving as before (when the playback bar is along the bottom). --- .../emby-webcomponents/nowplayingbar/nowplayingbar.js | 4 ++-- src/components/remotecontrol.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bower_components/emby-webcomponents/nowplayingbar/nowplayingbar.js b/src/bower_components/emby-webcomponents/nowplayingbar/nowplayingbar.js index 8ac00f13d7..2baba6582b 100644 --- a/src/bower_components/emby-webcomponents/nowplayingbar/nowplayingbar.js +++ b/src/bower_components/emby-webcomponents/nowplayingbar/nowplayingbar.js @@ -186,7 +186,7 @@ define(['require', 'datetime', 'itemHelper', 'events', 'browser', 'imageLoader', volumeSliderContainer.classList.remove('hide'); } - volumeSlider.addEventListener('change', function () { + volumeSlider.addEventListener('mousemove', function () { if (currentPlayer) { currentPlayer.setVolume(this.value); @@ -779,4 +779,4 @@ define(['require', 'datetime', 'itemHelper', 'events', 'browser', 'imageLoader', } } }); -}); \ No newline at end of file +}); diff --git a/src/components/remotecontrol.js b/src/components/remotecontrol.js index fcb9fdc68c..a2711b335c 100644 --- a/src/components/remotecontrol.js +++ b/src/components/remotecontrol.js @@ -605,7 +605,7 @@ define(["browser", "datetime", "backdrop", "libraryBrowser", "listView", "imageL return datetime.getDisplayRunningTime(ticks); }; - context.querySelector(".nowPlayingVolumeSlider").addEventListener("change", function () { + context.querySelector(".nowPlayingVolumeSlider").addEventListener("mousemove", function () { playbackManager.setVolume(this.value, currentPlayer); }); context.querySelector(".buttonMute").addEventListener("click", function () {