Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlap incorrect when element is slightly offscreen #2

Open
AlexxIV opened this issue Aug 2, 2022 · 1 comment
Open

Overlap incorrect when element is slightly offscreen #2

AlexxIV opened this issue Aug 2, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@AlexxIV
Copy link

AlexxIV commented Aug 2, 2022

Hi,

I've came across this issue while testing selecto and found out that it uses the overlap area under the hood for hitRate calculations.
The problem is when you have an element which is 1 pixel of the viewport.

Normal behavior:
image

Bug:
image

On the second image the box is translated exactly 1px away from the viewbox and cannot be properly selected anymore

@daybrush daybrush added the bug Something isn't working label Aug 23, 2022
@daybrush
Copy link
Owner

@AlexxIV

Can you give me a demo like code sandbox or stackblitz?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants