Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88740

Ccc 如何获取 scrollview 的 cancel 状态(即点击后的取消事件)

$
0
0

@979797934 写道:

scrollEvent: function (sender, event) {
// console.log("event:" + event);
switch (event) {
case 0:
console.log("Scroll to Top");
break;
case 1:
console.log("Scroll to Bottom");
break;
case 2:
console.log("Scroll to Left");
break;
case 3:
console.log("Scroll to Right");
break;
case 4:
console.log("Scrolling");

            //this.svMonth.content.stopAllActions();
            //this.svMonth.strAction = null;
            break;
        case 5:
            console.log("Bounce Top");
            break;
        case 6:
            console.log("Bounce bottom");
            break;
        case 7:
            console.log("Bounce left");
            break;
        case 8:
            console.log("Bounce right");
            break;
        case 9:
            console.log("Auto scroll ended");
            break;
        case 10:
            console.log("10");
            break;
    }

这个10 移出区域外就无效了

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88740

Trending Articles



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