have sliders send updates immediately (like when using the mouse)
authorMike Frysinger <vapier@gentoo.org>
Sun, 1 Sep 2013 06:27:52 +0000 (02:27 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 1 Sep 2013 06:27:52 +0000 (02:27 -0400)
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;
        });