mirror of
https://github.com/penpot/penpot.git
synced 2025-03-16 01:31:22 -05:00
🐛 Frame moving with title with button different than left
This commit is contained in:
parent
43198eb263
commit
d61a86cad1
3 changed files with 8 additions and 6 deletions
|
@ -85,7 +85,7 @@
|
||||||
(.close ^java.io.OutputStream output-stream))))))
|
(.close ^java.io.OutputStream output-stream))))))
|
||||||
|
|
||||||
(defn- impl-format-response-body
|
(defn- impl-format-response-body
|
||||||
[response request]
|
[response _request]
|
||||||
(let [body (:body response)
|
(let [body (:body response)
|
||||||
opts {:type :json-verbose}]
|
opts {:type :json-verbose}]
|
||||||
(cond
|
(cond
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
(ns app.main.ui.workspace
|
(ns app.main.ui.workspace
|
||||||
(:require
|
(:require
|
||||||
[app.util.timers :as ts]
|
|
||||||
[app.main.data.messages :as dm]
|
[app.main.data.messages :as dm]
|
||||||
[app.main.data.workspace :as dw]
|
[app.main.data.workspace :as dw]
|
||||||
[app.main.data.workspace.persistence :as dwp]
|
[app.main.data.workspace.persistence :as dwp]
|
||||||
|
@ -27,6 +26,7 @@
|
||||||
[app.util.dom :as dom]
|
[app.util.dom :as dom]
|
||||||
[app.util.i18n :as i18n :refer [tr]]
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
[app.util.object :as obj]
|
[app.util.object :as obj]
|
||||||
|
[app.util.timers :as ts]
|
||||||
[okulary.core :as l]
|
[okulary.core :as l]
|
||||||
[rumext.alpha :as mf]))
|
[rumext.alpha :as mf]))
|
||||||
|
|
||||||
|
|
|
@ -95,10 +95,12 @@
|
||||||
on-mouse-down
|
on-mouse-down
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
(mf/deps (:id frame) on-frame-select)
|
(mf/deps (:id frame) on-frame-select)
|
||||||
(fn [event]
|
(fn [bevent]
|
||||||
|
(let [event (.-nativeEvent bevent)]
|
||||||
|
(when (= 1 (.-which event))
|
||||||
(dom/prevent-default event)
|
(dom/prevent-default event)
|
||||||
(dom/stop-propagation event)
|
(dom/stop-propagation event)
|
||||||
(on-frame-select event (:id frame))))
|
(on-frame-select event (:id frame))))))
|
||||||
|
|
||||||
on-double-click
|
on-double-click
|
||||||
(mf/use-callback
|
(mf/use-callback
|
||||||
|
|
Loading…
Add table
Reference in a new issue