mirror of
https://github.com/s00500/ESPUI.git
synced 2024-12-23 00:40:49 +00:00
Merge pull request #114 from tecteun/master
slider sends (browser dependent) lots of events, throttle using only …
This commit is contained in:
commit
48826caee6
4
data/js/controls.js
vendored
4
data/js/controls.js
vendored
@ -799,9 +799,11 @@ function start() {
|
||||
websock.onmessage = handleEvent;
|
||||
}
|
||||
|
||||
var sliderCache = {};
|
||||
function sliderchange(number) {
|
||||
var val = $("#sl" + number).val();
|
||||
websock.send("slvalue:" + val + ":" + number);
|
||||
sliderCache[number] !== val && websock.send("slvalue:" + val + ":" + number);
|
||||
sliderCache[number] = val;
|
||||
}
|
||||
|
||||
function numberchange(number) {
|
||||
|
251
data/js/controls.min.js
vendored
251
data/js/controls.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user