I am looking to implement 2 different gestures for a specific feature in my application. Ideally, I want users to be able to double click on a card to open it in desktop view, but if they are using a phone, a single tap should suffice. How can I achieve this functionality? Below is the code snippet specifically designed for desktop view.
<Grid item xs={2} key={keyId}>
<Card xs={12}}}
onDoubleClick={() => { addProject(projname) }}>
</Grid>
Any assistance with solving this challenge would be greatly appreciated. Thank you!