12345678910111213141516171819 |
- cc.Class({
- extends: cc.ScrollView,
- properties: {
- scrollSpeed:{default:0.2,tooltip:"滑动速度"},
- },
-
- onLoad : function(){
- },
-
- start () {
- },
- _handleMoveLogic (touch) {
- let that = this;
- let deltaMove = touch.getDelta();
- that._processDeltaMove(deltaMove.mul(this.scrollSpeed));
- }
- // update (dt) {},
- });
|