MudSwipeArea: SwipeEventArgs Feature#6574
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev #6574 +/- ##
==========================================
+ Coverage 91.37% 91.42% +0.05%
==========================================
Files 397 398 +1
Lines 14916 14959 +43
==========================================
+ Hits 13629 13677 +48
+ Misses 1287 1282 -5
... and 16 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
henon
left a comment
There was a problem hiding this comment.
I like the change. Test coverage is low though.
|
I also like the change, EventCallback is much better than Action for parameter, and it supports Task. |
| } | ||
|
|
||
| internal void OnTouchEnd(TouchEventArgs arg) | ||
| internal async void OnTouchEnd(TouchEventArgs arg) |
There was a problem hiding this comment.
Now when it's async can we change void to Task. And since it's internal rename to OnTouchEndAsync
There was a problem hiding this comment.
Im not sure we add async suffix even on async Tasks. @henon? But i agree with change void to Task.
There was a problem hiding this comment.
Up until now we have not had a rule that we have to have an ...Async postfix in private functions or event handlers if they are async. We try to have the postfix in public API though (i.e. FocusAsync etc) even though there may be some inconsistencies as we didn't do that in the beginning.
Completely agree, only i didn't decide where to add this file. |
It's totally fine to have it in the |
|
Changed the requested things and add test, now it coverage %100. |
|
I would maybe consider |
|
@mckaragoz I think @ScarletKuro is right, it would be better to make all setters readonly and private so they can only be set via the constructor. We can't change this later as it is public API so let's do it now, OK? |
|
Changed, if it's proper, we can merge |
* MudSwipeArea SwipeEventArgs
Description
This PR aims to handle OnSwipe properly.
Action<SwipeDirection>, OnSwipeEnd isEventCallback<SwipeEventArgs>Its not a breaking change, just obsoleted OnSwipe and GetSwipeDelta method.
How Has This Been Tested?
Types of changes
Checklist:
dev).