You might run into problems if you add the event listeners for touchstart and mousedown inside of the if touchstart in document.body. Cases such as a laptop with a touchscreen. Great videos BTW.
Hi great video, I need to disable the popup context menu when long pressing but still be able to click on a link or photo, but preventDefault() overrides the link/photos being clickable. Do you have any alternatives to preventDefault please? Thanks
This channel is a gold mine
This was very helpful, thank you for this video !
Thank you. I have to implment long press functionality in a web application im building and this should do the trick.
This is so cool! Thanks for sharing! :)
Thanks Mate. Nice feature.
You might run into problems if you add the event listeners for touchstart and mousedown inside of the if touchstart in document.body. Cases such as a laptop with a touchscreen. Great videos BTW.
Hi great video, I need to disable the popup context menu when long pressing but still be able to click on a link or photo, but preventDefault() overrides the link/photos being clickable. Do you have any alternatives to preventDefault please? Thanks
Nope. If you are preventing event doing what it normally does then that's it.
You are awesome
♥️😢🔥♥️♥️♥️♥️ Big love 💝🤗
Vous voyez bien que d'autres réactions ne marchent pas, seulement "like".