Skip to content

Overlap incorrect when element is slightly offscreen #2

Open
@AlexxIV

Description

@AlexxIV

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions