From: Mike Frysinger Date: Sun, 1 Sep 2013 06:27:52 +0000 (-0400) Subject: have sliders send updates immediately (like when using the mouse) X-Git-Tag: v3.0~17 X-Git-Url: https://git.wh0rd.org/?p=chrome-ext%2Fmusic-player-client.git;a=commitdiff_plain;h=ea13f13a1c11e84f8de064bba91b6aa331a18007 have sliders send updates immediately (like when using the mouse) --- diff --git a/main.js b/main.js index c0436df..b9d188d 100644 --- 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; });