     
   
 # Create list of cells, that in Poincare projection are big enough.
-visibleNeighborhood = (tessellation, appendRewrite, minCellSize=1.0/400.0) ->
+visibleNeighborhood = (tessellation, appendRewrite, minCellSize) ->
   #Visible size of the polygon far away
   getNeighbors = mooreNeighborhood tessellation.group.n, tessellation.group.m, appendRewrite
   cells = new NodeHashMap

  dx = x-cx
  dy = y-cy
  if dx*dx + dy*dy <= r*r*0.8*0.8
    dragHandler = new MovingDragger x, y
  else
    dragHandler = new RotatingDragger x, y

doCanvasMouseMove = (e) ->
  if dragHandler isnt null

    dAngle = newAngle - @angle0
    @angle0 = newAngle
    rotateView dAngle
                      
# ============ Bind Events =================
E("btn-reset").addEventListener "click", doReset
E("btn-step").addEventListener "click", doStep
