loupe-js icon indicating copy to clipboard operation
loupe-js copied to clipboard

after a while, loupe occassionally fails to disappear when leaving the image

Open nishanths opened this issue 5 years ago • 3 comments

To reproduce: Repeatedly hover over and out of the target image. In most cases the loupe disappears as expected. After a while, in some cases, the loupe remains visible even when the mouse is moved out of the image.

nishanths avatar Jun 01 '20 17:06 nishanths

I think it is because there's a race, either we remove the event listener first or we recalculate the exit condition

snowfluke avatar Mar 07 '24 07:03 snowfluke

the exitDistance should be half of the width for x and half of the height for y from the magnifier glass

snowfluke avatar Mar 07 '24 07:03 snowfluke

Just submitted a new PR @nishanths

snowfluke avatar Mar 07 '24 07:03 snowfluke