Skip to content

Conversation

austindebruyn
Copy link

I have a use case where I'd like to listen to outside mouse releases, not presses. There's many ways to do it, but the least intrusive is to just allow a prop that sets the evt type to listen on. Thoughts?
Tested and works fine on desktop and mobile.

@Pomax
Copy link
Owner

Pomax commented Oct 22, 2015

while a small change, that does change the mixin into a generic "onAnythingOutside", so might actually be worth just spinning off as its own, more generic, mixin.

@austindebruyn
Copy link
Author

I could live with it, but I'd rather not make a new repo that is 99% similar to this one. Are you a fan of this solution?

@Pomax
Copy link
Owner

Pomax commented Oct 22, 2015

no, I don't want to have a project that's called "onclickoutside" lie about what it does. However, what we can do is start react-onoutsideevent, which I just have. If you want to refile your PR against that, then we can continue work there, and eventually retire this project instead.

@austindebruyn
Copy link
Author

Fair enough, moved to Pomax/react-onoutsideevent#1 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants