usePosition
usePosition copied to clipboard
winX and winY additions are wrongly exchanged
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,
};
+1