Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

ListView EVENT_SCROLLING not working in jsb

$
0
0

@huyhungkun wrote:

I have a ListView. I add event listener as below. In web, it work fine, in mobile, I see it doesn't dispatch any event and function scrollEvent below never run, anyone help me, thank all.

ccui.ScrollView.prototype.addEventListener.call(this.listView, this.scrollEvent, this);

scrollEvent: function (list, eventNum)
{
    switch (eventNum)
    {
        case ccui.ScrollView.EVENT_SCROLLING:
        case ccui.ScrollView.EVENT_BOUNCE_TOP:
        case ccui.ScrollView.EVENT_BOUNCE_BOTTOM:
        case ccui.ScrollView.EVENT_BOUNCE_LEFT:
        case ccui.ScrollView.EVENT_BOUNCE_RIGHT:
            this.calculateVisible();
            break;
    }
},

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles



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