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

521
Visualizações
How can I implement 'drag to select' in React?

I am new to React and would like to highlight single adjacent letters in a grid of letters by dragging over them (i.e. hovering over them but with the mouse clicked).

The final result should look and feel like this: https://lovattspuzzles.com/online-puzzles-competitions/play-daily-word-search-puzzle-online/

By using onDragEnter={() => {} on each of the letters, I am able to generate the desired effect; however, the dragged element is then clipped to my mouse (see following screenshot).

onDragEnter

Is there any method to not show the dragged element from the screenshot? Is there a better method to implement 'drag to select' in React?

Thank you very much for your help!

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