mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Avoid unnecesary text editor pointer movements
This commit is contained in:
parent
290f37425f
commit
5c67cd0a4b
@ -369,7 +369,8 @@
|
||||
;; in the future (when we handle the UI in the render) should be better to
|
||||
;; have a "wasm.api/pointer-move" function that works as an entry point for
|
||||
;; all the pointer-move events.
|
||||
(wasm.api/text-editor-pointer-move (.-x off-pt) (.-y off-pt))
|
||||
(when (wasm.api/text-editor-has-focus?)
|
||||
(wasm.api/text-editor-pointer-move (.-x off-pt) (.-y off-pt)))
|
||||
|
||||
(rx/push! move-stream pt)
|
||||
(reset! last-position raw-pt)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user