mirror of
https://github.com/penpot/penpot.git
synced 2025-07-22 10:17:13 +02:00
Merge remote-tracking branch 'origin/staging' into develop
This commit is contained in:
commit
4fad2ab619
59 changed files with 608 additions and 325 deletions
|
@ -368,12 +368,22 @@
|
|||
(when (some? node)
|
||||
(.blur node)))
|
||||
|
||||
;; List of dom events for different browsers to detect the exit of fullscreen mode
|
||||
(def fullscreen-events
|
||||
["fullscreenchange" "mozfullscreenchange" "MSFullscreenChange" "webkitfullscreenchange"])
|
||||
|
||||
(defn fullscreen?
|
||||
[]
|
||||
(cond
|
||||
(obj/in? globals/document "webkitFullscreenElement")
|
||||
(boolean (.-webkitFullscreenElement globals/document))
|
||||
|
||||
(obj/in? globals/document "mozFullScreen")
|
||||
(boolean (.-mozFullScreen globals/document))
|
||||
|
||||
(obj/in? globals/document "msFullscreenElement")
|
||||
(boolean (.-msFullscreenElement globals/document))
|
||||
|
||||
(obj/in? globals/document "fullscreenElement")
|
||||
(boolean (.-fullscreenElement globals/document))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue