-
Notifications
You must be signed in to change notification settings - Fork 1.4k
SlidableListItem improvements. #241
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
bkaankose
commented
Aug 25, 2016
- IsLeftSwipeEnabled and IsRightSwipeEnabled added for controlling swiping options. (fixes SlidableListItem - Enable/Disable Left/Right side #156)
- Sample app updated
- Fixed behavior causing background change during opposite swipe is performed without pointer release. (fixes SlidableListViewItem's background stop working as intentional when swiped without pointer released. #191)
Hi @bkaankose, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! The agreement was validated by Microsoft and real humans are currently evaluating your PR. TTYL, MSBOT; |
Pinging @nmetulev for validation :) |
While you're on this one, do you mind considering this one: #236? |
@deltakosh will definitely look into that. |
Thanks a lot! |
_leftCommandPanel.Opacity = 1; | ||
_rightCommandPanel.Opacity = 0; | ||
|
||
if (abs < ActivationWidth) |
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.
why removing ActivationWidth?
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.
Actually it was something that I deleted for debug purposes. If I add that, there has to be more work onto this commit because it's messing with the content that users see.
I will update it soon, thanks for pointing out.
{ | ||
if (_commandContainer != null) | ||
if (IsRightSwipeEnabled && e.Delta.Translation.X > 0) | ||
{ // Swiping from left to right. |
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.
Comment should be on a new line.
|
||
_leftCommandPanel.Opacity = 1; | ||
_rightCommandPanel.Opacity = 0; | ||
var swipeThreshold = _leftCommandPanel.ActualWidth + 24; |
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 be able to set to value (24)
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.
Do you mean allowing developers to change extra swipethreshold?
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.
Yep:)
ping? |
Will send an update in a few hours. |
Woot that was fast :D |
I think that Gitter thing sounds perfect for these kind of things :D |
Lol....duly noted;) |
pinging @deltakosh for validation. looking good? |
LGTM! |
Did you updated the doc? |
No I didn't yet. I will asap. |
Waiting for another reviewer |
Merging this one. @reviewers: Please create an issue if problems found |