summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-10-18 09:56:38 +0300
committerMaxim Devaev <[email protected]>2021-10-18 09:56:38 +0300
commit10d8514c6bc49f4a2b2d77e91435bb8286f56bd8 (patch)
tree018cc1a388f7e800375b437005294cdb75706a79
parent01dd31d755af69692a92033463afb20fb4818104 (diff)
refactoring
-rw-r--r--web/share/js/kvm/stream.js6
-rw-r--r--web/share/js/tools.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js
index 15a62194..c949aa65 100644
--- a/web/share/js/kvm/stream.js
+++ b/web/share/js/kvm/stream.js
@@ -428,13 +428,13 @@ export function Streamer() {
$("stream-led").title = "Stream inactive";
tools.slider.setParams($("stream-quality-slider"), 5, 100, 5, 80);
- tools.slider.setOnUp($("stream-quality-slider"), 1000, __updateQualityValue, (value) => __sendParam("quality", value));
+ tools.slider.setOnUpDelayed($("stream-quality-slider"), 1000, __updateQualityValue, (value) => __sendParam("quality", value));
tools.slider.setParams($("stream-h264-bitrate-slider"), 100, 16000, 100, 5000);
- tools.slider.setOnUp($("stream-h264-bitrate-slider"), 1000, __updateH264BitrateValue, (value) => __sendParam("h264_bitrate", value));
+ tools.slider.setOnUpDelayed($("stream-h264-bitrate-slider"), 1000, __updateH264BitrateValue, (value) => __sendParam("h264_bitrate", value));
tools.slider.setParams($("stream-desired-fps-slider"), 0, 120, 1, 0);
- tools.slider.setOnUp($("stream-desired-fps-slider"), 1000, __updateDesiredFpsValue, (value) => __sendParam("desired_fps", value));
+ tools.slider.setOnUpDelayed($("stream-desired-fps-slider"), 1000, __updateDesiredFpsValue, (value) => __sendParam("desired_fps", value));
$("stream-resolution-selector").onchange = (() => __sendParam("resolution", $("stream-resolution-selector").value));
diff --git a/web/share/js/tools.js b/web/share/js/tools.js
index b8045f62..d346eab9 100644
--- a/web/share/js/tools.js
+++ b/web/share/js/tools.js
@@ -129,7 +129,7 @@ export var tools = new function() {
self.slider = new function() {
return {
- "setOnUp": function(el, delay, display_callback, execute_callback) {
+ "setOnUpDelayed": function(el, delay, display_callback, execute_callback) {
el.execution_timer = null;
let clear_timer = function() {