Cocos-js鼠标滚轮监听事件

cc.eventManager.addListener(
            {
                event:cc.EventListener.MOUSE,
                swallow:true,
                //鼠标滚轮监听事件
                onMouseScroll:function(event)
                {
                    var content = self.m_clipper.getChildByName("stencil");
                    var yy = event.getScrollY();//滚轮上滑yy值大于0,下滑yy值小于0
                    if(yy > 0)
                    {
                        var curScale = content.getScale();
                        curScale += 0.01;
                        if(self.isScaleLimit(content,curScale))
                            content.setScale(curScale,curScale);
                    }
                    else{
                        var curScale = content.getScale();
                        curScale -= 0.01;
                        if(self.isScaleLimit(content,curScale))
                            content.setScale(curScale,curScale);
                    }
                }
            },this);

贴了一段代码,然后你的问题是什么?