From 3d8af74be5cbb2b074baa881bafcf5d5a8204e79 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.comā©> Date: Tue, 8 Aug 2023 23:40:58 +0200 Subject: [PATCH] spotrem: send configuration to libslider --- apps/spotrem/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spotrem/app.js b/apps/spotrem/app.js index 4a36af2f414..5ffec94ee11 100644 --- a/apps/spotrem/app.js +++ b/apps/spotrem/app.js @@ -112,14 +112,14 @@ let setUI = function() { }, ud => { //if (ud) Bangle.musicControl(ud>0 ? "volumedown" : "volumeup"); - + if (ud) { let callback = (mode, fb)=>{ if (mode == "map") Bangle.musicControl({cmd:"volumesetlevel", extra:Math.round(100*fb/30)}); if (mode == "incr") Bangle.musicControl(fb>0 ? "volumedown" : "volumeup"); }; - require("SliderInput").interface(callback, true, true); + require("SliderInput").interface(callback, {useMap:true, oversizeL:0.25}); } } );