Fixing accidental open when in a scroll view

When at the top of a listview or other scroll view, trying to scroll further up causes an accidental open of the swipe layout. This has been fixed.

Also when setting the mode of the adaptor, the selected position needs to be cleared for all cases.