From f1ae432b75d15a6eca13c51bf3b8e77c75f32994 Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.comā©> Date: Fri, 8 Sep 2023 22:21:27 +0200 Subject: [PATCH] slidertest:init slider2 paused, stop user input ... only update when changes happen on the android device. --- apps/slidertest/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/slidertest/app.js b/apps/slidertest/app.js index ddc863a9523..58225b58470 100644 --- a/apps/slidertest/app.js +++ b/apps/slidertest/app.js @@ -38,7 +38,7 @@ let sliderObject2; let initSlider2 = ()=>{ sliderObject2 = require("SliderInput").interface( callback2, - {useMap:true, steps:trackDur, currLevel:trackPosition, horizontal:true, rounded:false, timeout:0, useIncr:false, immediateDraw:false, propagateDrag:true, width:Math.round(R.w/20), xStart:R.x2-R.w/20-4, oversizeR:10, oversizeL:10, autoProgress:true, yStart: R.x+4, height: R.w-8} + {useMap:false, useIncr:false, steps:trackDur, currLevel:trackPosition, horizontal:true, rounded:false, timeout:0, useIncr:false, immediateDraw:false, propagateDrag:true, width:Math.round(R.w/20), xStart:R.x2-R.w/20-4, oversizeR:10, oversizeL:10, autoProgress:true, yStart: R.x+4, height: R.w-8} ); sliderObject2.f.draw(sliderObject2.v.level); if (trackState==="play") sliderObject2.f.startAutoUpdate(); @@ -57,7 +57,7 @@ Bangle.musicControl("volumegetlevel"); // Bangle.emit("message", type, msg); let trackPosition = 0; let trackDur = 30; -let trackState = "play"; +let trackState = "pause"; let messageHandler = (type, msg)=>{ print("\n","type:"+type, "t:"+msg.t, "src:"+msg.src, "mode:"+msg.state, "pos:"+msg.position, "dur:"+msg.dur); if (type==='music' && msg.src=="musicstate") {