have sliders send updates immediately (like when using the mouse)
[chrome-ext/music-player-client.git] / main.js
diff --git a/main.js b/main.js
index c0436df50ddc4ad0faf2f6eb8a19d469e211ca8b..b9d188deced4318cfd565942404e11cadabc3b32 100644 (file)
--- a/main.js
+++ b/main.js
@@ -193,7 +193,7 @@ function init_ui(local_keys, sync_keys, options) {
                'seekcur', 'setvol', 'single', 'stop',
        ].forEach(function(id) {
                var ele = window['ui_mpc_' + id] = document.getElementById(id);
-               ele.onclick = window['tramp_mpc_' + id];
+               ele.onchange = ele.onclick = window['tramp_mpc_' + id];
                ele.title = id;
        });