update slider value without waiting for socketio

This commit is contained in:
Noli 2022-03-25 22:18:00 +01:00
parent 72b74d9ab6
commit 076c6c8efa
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,7 @@ var adventure = false;
// Chatmode
var chatmode = false;
var sliders_throttle = getThrottle(250);
var sliders_throttle = getThrottle(200);
//=================================================================//
// METHODS
@ -179,6 +179,8 @@ function addSetting(ob) {
var that = this;
sliders_throttle(ob.id, function () {
socket.send({'cmd': $(that).attr('id'), 'data': $(that).val()});
refin.val(parseFloat($(that).val()));
reflb.html($(that).val());
});
}
);