   setScrollLeft:(val)->   @getElement().scrollLeft = val
 
 
-  scroll:(event)->
-
-    return yes  unless @verticalThumb
-
-    if @verticalThumb.beingDragged or @horizontalThumb.beingDragged
-      return KD.utils.stopDOMEvent event
-
-
   scrollTo:({top, left, duration},callback)->
     top      or= 0
     left     or= 0

require('jquery-mousewheel') $
KDView           = require './../../core/view.coffee'
KDCustomHTMLView = require './../../core/customhtmlview.coffee'
KDScrollThumb    = require './scrollthumb.coffee'
KDScrollTrack    = require './scrolltrack.coffee'

module.exports = class KDScrollView extends KDView

  DIRECTIONS = ['up', 'right', 'down', 'left']

  constructor:(options = {}, data)->

    options.ownScrollBars   ?= no
    options.naturalScroll   ?= yes
    options.bind           or= "mouseenter"
    options.isWrapper       ?= no
    options.mouseWheelSpeed ?= 3
    options.cssClass         = KD.utils.curry "kdscrollview", options.cssClass

    super options, data

    { @ownScrollBars, @isWrapper } = @getOptions()

    @once 'viewAppended', @bound '_createScrollBars'  if @ownScrollBars

    @stopScrolling = no
    @on 'click', -> KD.getSingleton('windowController').enableScroll()

    viewOffsetFromScrollView = viewGlobalOffset - scrollViewGlobalOffset
    (viewHeight + viewOffsetFromScrollView - @getHeight())/@getHeight()


  mouseWheel:->

    return no  if @stopScrolling
