         classes (classnames
                  :no-tool-bar-right (not right-sidebar?)
                  :no-tool-bar-left (not left-sidebar?)
-                 :scrolling (:scrolling @local false))]
-    (html
-     [:div
-      (header)
-      (colorpalette)
-      (uum/messages)
+                 :scrolling (:viewport-positionig workspace))]
+    [:div
+     (header)
+     (colorpalette)
+     (uum/messages)
 
-      [:main.main-content
+     [:main.main-content
 
-       [:section.workspace-content
-        {:class classes
-         :on-scroll on-scroll
-         :on-wheel (partial on-wheel own)}
+      [:section.workspace-content
+       {:class classes
+        :on-scroll on-scroll
+        :on-wheel (partial on-wheel own)}
 
 
-        (history-dialog page)
+       (history-dialog page)
 
-        ;; Rules
-        (horizontal-rule zoom)
-        (vertical-rule zoom)
+       ;; Rules
+       (horizontal-rule zoom)
+       (vertical-rule zoom)
 
-        ;; Canvas
-        [:section.workspace-canvas
-         {:ref "workspace-canvas"}
-         (viewport)]]
+       ;; Canvas
+       [:section.workspace-canvas
+        {:id "workspace-canvas"
+         :ref "workspace-canvas"}
+        (viewport)]]
 
-       ;; Aside
-       (when left-sidebar?
-         (left-sidebar))
-       (when right-sidebar?
-         (right-sidebar))]])))
-
-(def workspace
-  (mx/component
-   {:render workspace-render
-    :did-remount workspace-did-remount
-    :will-mount workspace-will-mount
-    :will-unmount workspace-will-unmount
-    :did-mount workspace-did-mount
-    :name "workspace"
-    :mixins [mx/static
-             mx/reactive
-             shortcuts-mixin
-             (mx/local)]}))
+      ;; Aside
+      (when left-sidebar?
+        (left-sidebar))
+      (when right-sidebar?
+        (right-sidebar))]]))

            [uxbox.main.ui.workspace.sidebar.history :refer (history-dialog)]
            [uxbox.main.ui.workspace.sidebar :refer (left-sidebar right-sidebar)]
            [uxbox.main.ui.workspace.colorpalette :refer (colorpalette)]
            [uxbox.main.ui.workspace.canvas :refer (viewport)]))

;; --- Workspace


;; License, v. 2.0. If a copy of the MPL was not distributed with this
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;;
;; Copyright (c) 2015-2017 Andrey Antukh <niwi@niwi.nz>
;; Copyright (c) 2015-2017 Juan de la Cruz <delacruzgarciajuan@gmail.com>

(ns uxbox.main.ui.workspace
  (:require [beicon.core :as rx]
            [uxbox.main.constants :as c]
            [potok.core :as ptk]
            [uxbox.store :as st]
