       setPan: ->
          scrollTo -@panZoom.panX(), -@panZoom.panY()
 
-   zoomInFactor = Math.sqrt(2)
-   zoomOutFactor = 1 / Math.sqrt(2)
+   zoomInFactor = Math.sqrt 2
+   zoomOutFactor = 1 / Math.sqrt 2
    zoomFactor = (scrollDelta) ->
       if scrollDelta < 0 then zoomInFactor else zoomOutFactor
 

      ) ->
         @panning = false

         @minZoom = 1 / 4 - 0.01
         @zoom = 1
         @maxZoom = 1



      move: (x, y) ->
         if @panning
            @_lastMoveX = x
            @_lastMoveY = y

      minX: ->
