New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resizing stalls if the mouse leaves the container #113
Conversation
Looks like the CI is complaining about a username:
Any ideas? |
I think the CI is set up to work with my GH OAuth.. let me see if I can fix that. |
Also, can you post the new minified build size in PRs to compare? |
That build is 1.8kB according to the |
This looks great. I'm ok with all of it except the change in the callback calls to getOption(options, 'onDrag', NOOP)(). I think it's more clear to do the check, and then call the function if it's set. Other than that, looks stellar! ⭐️ |
@nathancahill fair enough. I mainly made that change for consistency with the other options, though I think it did save a few bytes too. How would you feel about another alternative; storing onDrag / onDragBegin / onDragEnd in constants (with But if you don't want that I'm fine to revert those to how it used to be. Let me know. |
I like that second option better, that's good with me. |
Didn't want to kill your enthusiasm on this minor detail, so I'm going to merge as is and we can revisit in the future. Thanks for the great PR! |
@nathancahill Apologies for going a bit silent on this; ran out of weekend then had (still have) other things to deal with. Will get back to this soon. |
Patch for #111
Thanks for giving me contributor access, but to begin with I'd like to stick to PRs so you get a chance to comment.
This series of commits fixes the linter issues I mentioned, moves event listeners from the parent node to the root node, and tidies up a few minor things (slightly better minification).
Tested in Chrome, FireFox and Safari