I'm using a ListView and ExpandableListView with pull to refresh enabled (using a ViewWrapper and all).
When the ListViews are at their top scroll position (Y for the scroll component is 0) the ListView no longer registers long touches (like the ones registered by IOnLongItemClickListener). At any other scroll position the long touches work fine.
I figured out that the issue is caused by the OnTouchEvent and OnInterceptTouchEvent in the ViewWrapper class. More specifically in the line 233-241 and line 281-288 blocks in the ViewWrapper.cs file. But I can't figure out how the bug occurs.
I tried to fix it by changing the return ContentView.IsAtTop; on line 288 to return false; While this does allow the long touches to fire their relevant events, it will also allow long touches to fire events when scrolling to "pull down" the refresh header. So in the end it doesn't work out.
I'm using a
ListView
andExpandableListView
with pull to refresh enabled (using aViewWrapper
and all).When the ListViews are at their top scroll position (Y for the scroll component is 0) the ListView no longer registers long touches (like the ones registered by
IOnLongItemClickListener
). At any other scroll position the long touches work fine.I figured out that the issue is caused by the
OnTouchEvent
andOnInterceptTouchEvent
in theViewWrapper
class. More specifically in the line 233-241 and line 281-288 blocks in theViewWrapper.cs
file. But I can't figure out how the bug occurs.I tried to fix it by changing the
return ContentView.IsAtTop;
on line 288 toreturn false;
While this does allow the long touches to fire their relevant events, it will also allow long touches to fire events when scrolling to "pull down" the refresh header. So in the end it doesn't work out.