                                              (om/set-state! owner
                                                             :mouse-pos
                                                             (apply cameras/screen->point
-                                                                   camera
+                                                                   ;; bad idea in general, but without this panning is completely broken
+                                                                   (:camera @(om/get-shared owner :_app-state-do-not-use))
                                                                    (cameras/screen-event-coords e))))
                               :onMouseDown (fn [e]
                                              (utils/stop-event e)

    (render [_]
      (let [cast! (om/get-shared owner :cast!)
            [rx ry] (om/get-state owner :mouse-pos)
            camera (cursors/observe-camera owner)
            center (layers/center layer)]
        (dom/g #js {:className "arrow-handle-group"}
          (when (and rx ry)

                             :y2 ry
                             :markerEnd "url(#arrow-point)"})))
          (svg-element (assoc layer
                              :key (str (:db/id layer) "-handler")
                              :className (str "arrow-handle "
                                              (when (om/get-state owner :hovered?)
                                                "hovered "))
