Skip to content

Commit

Permalink
slidertest: take track position into account
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Sep 4, 2023
1 parent dc02656 commit 51122a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/slidertest/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ let trackDur = 30;
let messageHandler = (type, msg)=>{
print(type, msg);
if (type='music'){

Check warning on line 54 in apps/slidertest/app.js

View workflow job for this annotation

GitHub Actions / build

Expected a conditional expression and instead saw an assignment
trackPosition = 1; // should depend on msg.position or similar.
trackPosition = msg.position+1; // +1 to account for latency.
trackDur = msg.dur;
print('trackPosition: ' + trackPosition)
if (sliderObject2) {
Expand Down

0 comments on commit 51122a6

Please sign in to comment.