Fix markers on aux tab

10.8-maintenance
Ivan Efimov 2020-12-20 20:16:35 -06:00
parent bc47878b30
commit 1fc1e4fdb1
1 changed files with 4 additions and 4 deletions

View File

@ -409,16 +409,16 @@ TABS.auxiliary.initialize = function (callback) {
}
return channelPosition;
}
function update_marker(auxChannelIndex, channelPosition) {
const percentage = (channelPosition - 900) / (2100-900) * 100;
$('.modes .ranges .range').each( function () {
const auxChannelCandidateIndex = $(this).find('.channel').val();
const auxChannelCandidateIndex = parseInt($(this).find('.channel').val());
if (auxChannelCandidateIndex !== auxChannelIndex) {
return;
}
$(this).find('.marker').css('left', percentage + '%');
});
}