Skip to content

Search result highlighting pixels are inaccurate #79

Description

@RayzorFlash

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions