ideas icon indicating copy to clipboard operation
ideas copied to clipboard

useWindowMousePosition

Open jamiebuilds opened this issue 7 years ago • 7 comments

  • https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent
useWindowMousePosition()
// { x: number, y: number } 

jamiebuilds avatar Oct 25 '18 19:10 jamiebuilds

Can I claim this? I'll do it as soon as possible.

are avatar Oct 26 '18 01:10 are

Sure, you might want to do it based on https://github.com/rehooks/ideas/issues/4

jamiebuilds avatar Oct 26 '18 01:10 jamiebuilds

As I was working on #4 I realized I already implemented this. here it is! https://github.com/wuweiweiwu/window-mouse-position

@jamiebuilds Can I get added to the org to transfer ownership?

I finish up #4 soon! 🎉

wuweiweiwu avatar Oct 26 '18 05:10 wuweiweiwu

I invited you

jamiebuilds avatar Oct 26 '18 17:10 jamiebuilds

for people looking in the future: https://github.com/rehooks/window-mouse-position

wuweiweiwu avatar Oct 26 '18 18:10 wuweiweiwu

@wuweiweiwu what's your npm username so you can publish it?

jamiebuilds avatar Oct 26 '18 18:10 jamiebuilds

@jamiebuilds apologies for the late reply. my npm username is also wuweiweiwu https://www.npmjs.com/~wuweiweiwu

wuweiweiwu avatar Oct 29 '18 17:10 wuweiweiwu