Skip to content

Commit

Permalink
slidertest:init slider2 paused, stop user input
Browse files Browse the repository at this point in the history
... only update when changes happen on the android device.
  • Loading branch information
thyttan committed Sep 8, 2023
1 parent 047c606 commit f1ae432
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/slidertest/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Check failure on line 41 in apps/slidertest/app.js

View workflow job for this annotation

GitHub Actions / build

Duplicate key 'useIncr'
);
sliderObject2.f.draw(sliderObject2.v.level);
if (trackState==="play") sliderObject2.f.startAutoUpdate();
Expand All @@ -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") {
Expand Down

0 comments on commit f1ae432

Please sign in to comment.