From 2d43063537095d86bf92d13d7dc17ed6590159ec Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Tue, 24 Oct 2023 07:36:50 +0200 Subject: [PATCH] default range on hover --- bin/web/js/audio.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/web/js/audio.js b/bin/web/js/audio.js index 1a4aba7..fe3af98 100644 --- a/bin/web/js/audio.js +++ b/bin/web/js/audio.js @@ -319,6 +319,7 @@ const Audio = function(tp, record) { source_Dom_Cont.append(muteDom); source_Dom_Cont.append(muteDom_label); + const defaultRange = getDefaultRange(layer, propTitle); const min_max_Dom = document.createElement('div'); min_max_Dom.classList.add('audio_min_max'); const min_Cont = document.createElement('div'); @@ -330,6 +331,7 @@ const Audio = function(tp, record) { min_inputDom.type = 'number'; min_inputDom.name = toCssClass(`audio_min${propTitle}`); min_inputDom.id = toCssClass(`audio_min${propTitle}`); + min_inputDom.title = `default: ${defaultRange[0]}`; min_inputDom.value = `${mappingOptions.min_out}`; const max_Cont = document.createElement('div'); max_Cont.classList.add('audio_max_Cont'); @@ -340,6 +342,7 @@ const Audio = function(tp, record) { max_inputDom.type = 'number'; max_inputDom.name = toCssClass(`audio_max${propTitle}`); max_inputDom.id = toCssClass(`audio_max${propTitle}`); + max_inputDom.title = `default: ${defaultRange[1]}`; max_inputDom.value = `${mappingOptions.max_out}`; const smoothing_inputDom_label = document.createElement('label'); smoothing_inputDom_label.for = 'audio_smoothing';