       else
         @applyStyle(box, true) for box in @boxes
     if !@disabled()
-      @util().addEvent window, 'scroll', @scrollHandler
+      @util().addEvent @config.scrollContainer || window, 'scroll', @scrollHandler
       @util().addEvent window, 'resize', @scrollHandler
       @interval = setInterval @scrollCallback, 50
     if @config.live

    mobile:       true
    live:         true
    callback:     null

  constructor: (options = {}) ->
    @scrolled = true
    @config   = @util().extend(options, @defaults)
    # Map of elements to animation names:
    @animationNameCache = new WeakMap()
    @wowEvent = @util().createEvent(@config.boxClass)

  # check if box is visible
  isVisible: (box) ->
    offset     = box.getAttribute('data-wow-offset') or @config.offset
    viewTop    = (@config.scrollContainer && @config.scrollContainer.scrollTop) || window.pageYOffset
    viewBottom = viewTop + Math.min(@element.clientHeight, @util().innerHeight()) - offset
    top        = @offsetTop(box)
    bottom     = top + box.clientHeight
