Skip to content

Commit bee3aae

Browse files
Sam AdamsSam Adams
authored andcommitted
bugfix - round seek-to arg to int
1 parent 69ea85a commit bee3aae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/practaid/events.cljs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,6 @@
442442
(rf/dispatch [::player-requests-access-token callback]))
443443
:volume 0.5}))
444444
_ (.addListener player "autoplay_failed"
445-
;; TODO move me
446445
(fn [] (js/console.error "Autoplay is not allowed by the browser autoplay rules.")))
447446

448447
_ (.addListener player "ready"
@@ -564,7 +563,7 @@
564563
(let [item (db/playback-track db)
565564
track-duration-ms (:duration_ms item)]
566565
(if track-duration-ms
567-
{:fx [[:dispatch [::reset-looper (* track-duration-ms pos-frac)]]]}
566+
{:fx [[:dispatch [::reset-looper (int (* track-duration-ms pos-frac))]]]}
568567
{}))))
569568

570569
(rf/reg-event-fx

0 commit comments

Comments
 (0)