aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDevine Lu Linvega <[email protected]>2019-04-12 09:39:01 +0900
committerDevine Lu Linvega <[email protected]>2019-04-12 09:39:01 +0900
commit0c88dfe73029ce23a17b56c7e40e0e318813d14a (patch)
treee37e1fa05a9d05f92f68b35e1c9a56fed6adc895
parent0e986c69315fd2e37d70871126f9062fc568aa66 (diff)
downloadOrca-0c88dfe73029ce23a17b56c7e40e0e318813d14a.tar.gz
Orca-0c88dfe73029ce23a17b56c7e40e0e318813d14a.zip
Fixed issue with BPM setter
-rw-r--r--desktop/sources/scripts/clock.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/sources/scripts/clock.js b/desktop/sources/scripts/clock.js
index e563ea2..b53db1f 100644
--- a/desktop/sources/scripts/clock.js
+++ b/desktop/sources/scripts/clock.js
@@ -59,9 +59,10 @@ function Clock (terminal) {
}
this.setSpeed = function (bpm, animate = false) {
- if (animate) {
+ if (animate === true) {
this.speed.target = bpm
} else {
+ this.speed.target = bpm
this.setTimer(bpm)
}
}