     Common.installListener window, "keyup", @KeyUpHandler = (event) => @onKeyUp event
     Common.installListener window, "scroll", @scrollHandler = (event) => @onScroll event
     chrome.runtime.sendMessage name: "icon", show: @config.selectors?
+
+    @selectElement element false if element
+    @onScroll()
 
   onKeyDown: (event) ->
     # console.clear()

    config: false
    selector: false

  constructor: (@config) ->
    @element = null

    @config.offset ?= 100


    (event) ->
      cancel()
      unless @element and Common.isInViewport @element
        if element = @getElements("down")[0]
          timer = Common.setTimeout 200, =>
            timer = null
            unless @element and Common.isInViewport @element
              @selectElement element, false

init = ->
  chrome.runtime.sendMessage { name: "config", url: document.location.toString() }, (config) ->
