I am following this tutorial to create my own highlight contextual menu like medium.com. This works but on mobile devices, my custom highlight menu is hidden because the device's custom software hides it. Here is an image of the problem:
My code:
document.body.addEventListener('pointerup', function(){
// Shows my custom highlight menu
});
So what can I do? I want to hide this highlight menu on mobile devices because it hides my custom one as shown in the image.