@geolonia/embed 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/embed +1 -1
- package/dist/embed.js +1 -1
- package/package.json +1 -1
- package/src/lib/util.js +4 -8
package/package.json
CHANGED
package/src/lib/util.js
CHANGED
|
@@ -103,14 +103,10 @@ export function getLang() {
|
|
|
103
103
|
* Detects the window is scrollable.
|
|
104
104
|
*/
|
|
105
105
|
export function isScrollable() {
|
|
106
|
-
const
|
|
107
|
-
const
|
|
106
|
+
const body = document.body;
|
|
107
|
+
const html = document.documentElement;
|
|
108
108
|
|
|
109
|
-
|
|
110
|
-
return true;
|
|
111
|
-
} else {
|
|
112
|
-
return false;
|
|
113
|
-
}
|
|
109
|
+
return body.scrollHeight > body.clientHeight || html.scrollHeight > html.clientHeight;
|
|
114
110
|
}
|
|
115
111
|
|
|
116
112
|
/**
|
|
@@ -202,7 +198,7 @@ export function getOptions(container, params, atts) {
|
|
|
202
198
|
pitch: parseFloat(atts.pitch),
|
|
203
199
|
zoom: parseFloat(atts.zoom),
|
|
204
200
|
hash: (atts.hash === 'on'),
|
|
205
|
-
localIdeographFontFamily:
|
|
201
|
+
localIdeographFontFamily: undefined,
|
|
206
202
|
attributionControl: false,
|
|
207
203
|
};
|
|
208
204
|
|