Skip to content

Commit

Permalink
Add rounding to scroll offset calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Vlasov committed Sep 4, 2019
1 parent 140881c commit 945f250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/intro/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
[react/i18n-text {:style styles/wizard-title :key (:title s)}]
[react/i18n-text {:style styles/wizard-text
:key (:text s)}]])]
(let [selected (hash-set (quot @scroll-x window-width))]
(let [selected (hash-set (quot (int @scroll-x) (int window-width)))]
[dots-selector {:selected selected :n (count slides)
:color colors/blue}])])))

Expand Down

0 comments on commit 945f250

Please sign in to comment.