anaralabs / anaralabs/lector

Search result highlighting pixels are inaccurate

Aberta
#79 0 comentários 3 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
395
Forks
39
Merge médio
7h 7min
PRs com merge (30d)
12

Descrição

Hi! I was trying to implement a search UI and highlighting behaviour in my app using Lector, when i noticed that the exactMatch result and calculated highlight rect was being very inconsistent in terms of its offset/accuracy.

Tested the same behaviour with a few words in the `Custom Search` example from https://lector-weld.vercel.app/docs/code/search and was able to reproduce the highlight being off. Screenshots below:

Actual (search term `aggressive`):
Image

Expected (using browser find/search):
Image

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.