     viewOffsetFromScrollView = viewGlobalOffset - scrollViewGlobalOffset
     (viewHeight + viewOffsetFromScrollView - @getHeight())/@getHeight()
 
-  mouseWheel:(event)->
+
+  mouseWheel:->
 
     return no  if @stopScrolling
-
-    if @ownScrollBars
-      {_delta, deltaFactor} = event
-
-      return  unless _delta
-
-      speed = deltaFactor or @getOptions().mouseWheelSpeed
-      x     = _delta.deltaX
-      y     = _delta.deltaY
-
-      resX  = if x isnt 0 and @getScrollWidth() > @getWidth()
-      then  @_scrollHorizontally {speed, velocity : x}
-      else  no
-      resY  = if y isnt 0 and @getScrollHeight() > @getHeight()
-      then  @_scrollVertically {speed, velocity : y}
-      else  no
-
-      stop  = if Math.abs(x) > Math.abs(y) then resX else resY
-
-      return !stop
-
-
-  _scrollVertically: do ->
-
-    lastPosition = 0
-
-    ({speed, velocity})->
-
-      stepInPixels = velocity * speed
-      actPosition  = @getScrollTop()
-      newPosition  = actPosition - stepInPixels
-      shouldStop   = if velocity > 0
-      then lastPosition > newPosition
-      else lastPosition < newPosition
-
-      @setScrollTop lastPosition = newPosition
-
-      return shouldStop
-
-  _scrollHorizontally: do ->
-
-    lastPosition = 0
-
-    ({speed, velocity})->
-
-      stepInPixels = velocity * speed
-      actPosition  = @getScrollLeft()
-      newPosition  = actPosition + stepInPixels
-      shouldStop   = if velocity < 0
-      then lastPosition >= newPosition
-      else lastPosition <= newPosition
-
-      @setScrollLeft lastPosition = newPosition
-
-      return shouldStop
-
-
-  _createScrollBars:->
-
-    return  if @isWrapper
-
-    log "has-own-scrollbars"
-    {mouseWheelSpeed} = @getOptions()
-    @observeMutations()
-
-    @setClass "has-own-scrollbars"
-
-    @wrapper = new KDCustomHTMLView {
-      isWrapper : yes
-      cssClass  : 'own-scrollbars-wrapper'
-      mouseWheelSpeed
-    }
-    @parent.addSubView @wrapper
-    @detach()
-    @wrapper.attach this
-
-    @verticalTrack = new KDScrollTrack
-      cssClass : 'kdscrolltrack ver'
-      delegate : this
-
-    @wrapper.addSubView @verticalTrack
-
-    @horizontalTrack = new KDScrollTrack
-      cssClass : 'kdscrolltrack hor'
-      delegate : this
-
-    @wrapper.addSubView @horizontalTrack
-
-    @verticalTrack.addSubView @verticalThumb = new KDScrollThumb
-      cssClass : 'kdscrollthumb'
-      type     : 'vertical'
-      track    : @verticalTrack
-
-    @horizontalTrack.addSubView @horizontalThumb = new KDScrollThumb
-      cssClass : 'kdscrollthumb'
-      type     : 'horizontal'
-      track    : @horizontalTrack
-
-    @on 'MutationHappened', @verticalThumb.bound 'handleMutation'
-    @on 'MutationHappened', @horizontalThumb.bound 'handleMutation'
-
-    @scrollBarsCreated = yes
-
-
-
-

    else if subViewTop - viewTop + subViewHeight > viewHeight
      @scrollTo top : subViewRelTop - viewHeight + subViewHeight

  fractionOfHeightBelowFold:({view})->
    viewHeight = view.getHeight()
    viewGlobalOffset = view.$().offset().top

  setScrollLeft:(val)->   @getElement().scrollLeft = val


  scrollTo:({top, left, duration},callback)->
    top      or= 0
    left     or= 0
