mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
🐛 Fix crash on iOS when displaying viewer
This commit is contained in:
parent
8acc9af1f5
commit
89e2f4a481
4 changed files with 17 additions and 9 deletions
|
@ -45,6 +45,7 @@
|
||||||
- Fix ellipsis in long page names [Taiga #2962](https://tree.taiga.io/project/penpot/issue/2962)
|
- Fix ellipsis in long page names [Taiga #2962](https://tree.taiga.io/project/penpot/issue/2962)
|
||||||
- Fix color palette animation [Taiga #2852](https://tree.taiga.io/project/penpot/issue/2852)
|
- Fix color palette animation [Taiga #2852](https://tree.taiga.io/project/penpot/issue/2852)
|
||||||
- Fix display code icon on preview hover [Taiga #2838](https://tree.taiga.io/project/penpot/us/2838)
|
- Fix display code icon on preview hover [Taiga #2838](https://tree.taiga.io/project/penpot/us/2838)
|
||||||
|
- Fix crash on iOS when displaying viewer [#1522](https://github.com/penpot/penpot/issues/1522)
|
||||||
|
|
||||||
### :arrow_up: Deps updates
|
### :arrow_up: Deps updates
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
|
|
|
@ -7,14 +7,16 @@
|
||||||
(ns app.util.dom
|
(ns app.util.dom
|
||||||
(:require
|
(:require
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
[app.common.exceptions :as ex]
|
|
||||||
[app.common.geom.point :as gpt]
|
[app.common.geom.point :as gpt]
|
||||||
|
[app.common.logging :as log]
|
||||||
[app.util.globals :as globals]
|
[app.util.globals :as globals]
|
||||||
[app.util.object :as obj]
|
[app.util.object :as obj]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
||||||
[goog.dom :as dom]
|
[goog.dom :as dom]
|
||||||
[promesa.core :as p]))
|
[promesa.core :as p]))
|
||||||
|
|
||||||
|
(log/set-level! :warn)
|
||||||
|
|
||||||
;; --- Deprecated methods
|
;; --- Deprecated methods
|
||||||
|
|
||||||
(defn event->inner-text
|
(defn event->inner-text
|
||||||
|
@ -306,8 +308,9 @@
|
||||||
(boolean (.-fullscreenElement globals/document))
|
(boolean (.-fullscreenElement globals/document))
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(ex/raise :type :not-supported
|
(do
|
||||||
:hint "seems like the current browser does not support fullscreen api.")))
|
(log/error :msg "Seems like the current browser does not support fullscreen api.")
|
||||||
|
false)))
|
||||||
|
|
||||||
(defn ^boolean blob?
|
(defn ^boolean blob?
|
||||||
[^js v]
|
[^js v]
|
||||||
|
|
|
@ -8,11 +8,13 @@
|
||||||
"HTML5 web api helpers."
|
"HTML5 web api helpers."
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.exceptions :as ex]
|
[app.common.logging :as log]
|
||||||
[app.util.object :as obj]
|
[app.util.object :as obj]
|
||||||
[beicon.core :as rx]
|
[beicon.core :as rx]
|
||||||
[cuerdas.core :as str]))
|
[cuerdas.core :as str]))
|
||||||
|
|
||||||
|
(log/set-level! :warn)
|
||||||
|
|
||||||
(defn- file-reader
|
(defn- file-reader
|
||||||
[f]
|
[f]
|
||||||
(rx/create
|
(rx/create
|
||||||
|
@ -114,8 +116,9 @@
|
||||||
(.webkitRequestFullscreen el)
|
(.webkitRequestFullscreen el)
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(ex/raise :type :not-supported
|
(do
|
||||||
:hint "seems like the current browser does not support fullscreen api.")))
|
(log/error :msg "Seems like the current browser does not support fullscreen api.")
|
||||||
|
false)))
|
||||||
|
|
||||||
(defn exit-fullscreen
|
(defn exit-fullscreen
|
||||||
[]
|
[]
|
||||||
|
@ -127,8 +130,9 @@
|
||||||
(.webkitExitFullscreen js/document)
|
(.webkitExitFullscreen js/document)
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(ex/raise :type :not-supported
|
(do
|
||||||
:hint "seems like the current browser does not support fullscreen api.")))
|
(log/error :msg "Seems like the current browser does not support fullscreen api.")
|
||||||
|
false)))
|
||||||
|
|
||||||
(defn observe-resize
|
(defn observe-resize
|
||||||
[node]
|
[node]
|
||||||
|
|
Loading…
Add table
Reference in a new issue