mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Merge pull request #109 from utopia-os/fix-add-button
fix(source): capture tap events in add button on mobile chrome
This commit is contained in:
commit
a8130b3c54
@ -57,6 +57,10 @@ export default function AddButton({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
triggerAction(layer)
|
triggerAction(layer)
|
||||||
}}
|
}}
|
||||||
|
onTouchEnd={(e) => {
|
||||||
|
triggerAction(layer)
|
||||||
|
e.preventDefault()
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={layer.menuIcon}
|
src={layer.menuIcon}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user