Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

154
Visualizações
Prevent or Override Text Copy Popup after Touch Press

I'm trying to prevent the default popup (which includes Copy, etc.) from appearing when touch pressing on text in Chrome and other browsers. Specifically I want to replace this popup with my own commands. I still want the text to be selectable via mouse and touch. In other words:

enter image description here

I can't seem to find any solution that would not completely disable text selection and/or other pointer input.

Handling contextmenu with preventDefault at the window and span level do not work, nor does handling touchend.

Thanks for any suggestions!

Edit: It looks like overriding oncontextmenu works on Mobile Chrome but not Windows Chrome. Other people report this not working on iOS. Is there any general purpose solution that works on all browsers? Thanks!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda