Declined
Last Updated: 08 Aug 2019 11:58 by ADMIN
Anthony
Created on: 02 Jul 2019 06:37
Category: ListView
Type: Bug Report
0
Swipe No Longer Works When Offset And Threshold Are Equal

Hi,

As the header suggests, Swipe No Longer Works When Offset And Threshold Are Equal, the swipe closes on finger release. This started happening in the latest release, 2019.2.619.1, previously this worked without issue.

This can be replicated in the SDKBrowser by setting the following in Cell Swipe - Interactive Content example:

SwipeOffset="70, 0, 0, 0"
SwipeThreshold="70"

I have only tested this on Android. 

Regards

Anthony 

 

3 comments
ADMIN
Yana
Posted on: 03 Jul 2019 10:11
Hello Anthony,

I am so sorry for the caused situation with the swipeoffset fix. 

We haven't documented it as previously the behavior wasn't intended. I agree that we should have updated the example in our documentation, it's our fault that we missed to modify the snippet. Just in the concrete example (with swipe events) in ItemSwipeCompleted ‚Äčevent handler EndItemSwipe() method is called which forces the item to go to its default position, so the difference in the behavior is not observed. Anyway, I will update it in order to avoid any further confusion.

Again, please take my sincere apology for the caused inconvenience.  

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Anthony
Posted on: 02 Jul 2019 22:30

Hi,

Undocumented "changes" like this are very frustrating. I spent more than an hour trying to figure out why my code no longer works. At the very least it should be stated in the release notes.

It's worse when the documentation is not updated, 

https://docs.telerik.com/devtools/xamarin/controls/listview/gestures/listview-gestures-cell-swipe

has an example where they are both set to 70.

Regards

Anthony 

ADMIN
Yana
Posted on: 02 Jul 2019 11:48
Hi Anthony,

I have checked the case and actually the change of the swipe behavior on Android is caused by the following fix in the latest release:
https://feedback.telerik.com/xamarin/1385758-listview-android-swipeoffset-property-is-not-respected

SwipeThreshold property sets the value that needs to be exceeded in order for the swipe gesture to be initialized, in other words - the minimum swipe gesture length in pixels. So, basically, SwipeThreshold should be set to a smaller number than the SwipeOffset.  In the concrete case, if you set SwipeOffset to "65", for example, it will allow the swipe to be executed.

Please give it a try and let me know if you have any comments on this.

Regards,
Yana
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items