usePosition icon indicating copy to clipboard operation
usePosition copied to clipboard

winX and winY additions are wrongly exchanged

Open daniboomerang opened this issue 5 years ago • 1 comments

Hi, I think this https://github.com/tranbathanhtung/usePosition/blob/master/index.js#L25 should be

return {
  top: rect.top + winY,
  left: rect.left + winX,
};

daniboomerang avatar May 16 '19 18:05 daniboomerang

+1

dongjinahn avatar Jun 21 '19 05:06 dongjinahn