Skip to content

Commit

Permalink
fix(onboarding): Increase hit area for all selectors (#21355)
Browse files Browse the repository at this point in the history
* Increase hit-slop for all selectors

* Remove unnecessary `:f>` wrapper
  • Loading branch information
ulisesmac authored and yevh-berdnyk committed Oct 4, 2024
1 parent a4fb2dd commit f6d0432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/quo/components/selectors/selectors/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
[rn/pressable
(when-not disabled?
{:on-press on-press
:allow-multiple-presses? true})
:allow-multiple-presses? true
:hit-slop 12})
[rn/view
{:style outer-styles
:needs-offscreen-alpha-compositing true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
(reset! shell.state/screen-height height)
(async-storage/set-item! :screen-height height))))

(defn f-view
(defn view
[dark-overlay?]
(let [view-id (rf/sub [:view-id])
animate? (not dark-overlay?)
Expand Down Expand Up @@ -94,5 +94,3 @@
:blur-radius (if platform/android? 25 10)
:blur-type :transparent
:overlay-color :transparent}])]))

(defn view [dark-overlay?] [:f> f-view dark-overlay?])

0 comments on commit f6d0432

Please sign in to comment.