能够通过鼠标滚动但无法移动滚动条

时间:2016-08-22 07:53:54

标签: javascript jquery css

我希望能够使用移动滚动条滚动整个页面,但滚动条不会移动,尽管我可以用鼠标滚动。

我的HTML:

var array : String[]()

var x = 0


@IBAction func playBtnPressed(sender: UIButton) 
{

timer = NSTimer.scheduledTimerWithTimeInterval(60, target: self, selector: #selector(PlayVC.update), userInfo: nil, repeats: true)

}

func update()
{
    if x < array.count {

        let item = array[x]

        aLbl.text = array.itemTitle

        x += 1
    }

}

Jquery:

 <div id="mCSB_1_scrollbar_vertical" class="mCSB_scrollTools mCSB_1_scrollbar mCS-minimal mCSB_scrollTools_vertical" style="display: block;">
                        <div class="mCSB_draggerContainer" >
                        <div id="mCSB_1_dragger_vertical" class="mCSB_dragger" oncontextmenu="return false;">
                        <div class="mCSB_dragger_bar"></div>
                        </div>
                        <div class="mCSB_draggerRail"></div>
                        </div>
                    </div>

0 个答案:

没有答案