Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

ListView Scroll Behavior on Android with EventListener

$
0
0

I have this code:

sessionListView.list.addEventListener('swipe', function(e){
 
            if (e.direction=='right')
                    {
                        $.drawermenu.showmenu();
                    }
            if (e.direction=='left')
                    {
                       $.drawermenu.hidemenu();
                    }         
 });
which causes the listview to only scroll while you are touching the screen, as soon as you let off the ListView stops scrolling. When I comment this code out my listview scrolls properly. Is there any way to fix this?

I've also tried to put the event listener on the entire view but the listview still doesn't behave properly.

Thanks, Kenny


Viewing all articles
Browse latest Browse all 7655

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>