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:
antontranelis 2025-02-09 21:13:08 +00:00 committed by GitHub
commit a8130b3c54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,6 +57,10 @@ export default function AddButton({
onClick={() => {
triggerAction(layer)
}}
onTouchEnd={(e) => {
triggerAction(layer)
e.preventDefault()
}}
>
<img
src={layer.menuIcon}