-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Clarify documentation for DragAnchorStrategy. #79160
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
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
chunhtai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except test failure
|
Weird, the same API in LongPressDraggable wasn't deprecated. Was that intentional? I've updated the PR to deprecate the API there too, and updated the example accordingly. |
The intention is to do that in a separate pr. I wonder if @prosac has one in progress? Since you already include in this PR, I think we should just merge this |
chunhtai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have a test for LongPressDraggable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may need a test for this. Since Draggable already has test coverage, We can probably just create the LongPressDraggable with dragAnchorStrategy and make sure the same callback is passed into Draggable
|
Is there more to it than I think? The change to do that was basically 5 lines as far as I can tell. |
No I think this is it. |
|
Hi @Hixie are you still working on this PR? |
|
Yeah, though feel free to take it if you want to run with it. |
|
Added a test as suggested. |
chunhtai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the test.
|
hi! i during the weekend i planned to implement the change for |
|
i will continue implementing the |
|
wow. was too tired to check out the code yesterday. all done 🥇 . thank you @Hixie ! |
|
you're welcome :-) |
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.