mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
remove pinch to zoom
This commit is contained in:
1 parent
1687a372ae
commit
a990d22831
5 files changed
+24
-71
No files matched your search
@@ -67,7 +67,7 @@ export default {
|
||||
components: {
|
||||
DynamicSection
|
||||
},
|
||||
inject: ['baseFetch', 'template', 'nativePlatform'],
|
||||
inject: ['baseFetch', 'template'],
|
||||
provide () {
|
||||
return {
|
||||
documentFonts: computed(() => this.documentFonts)
|
||||
@@ -215,18 +215,10 @@ export default {
|
||||
this.resizeObserver.observe(this.$refs.container)
|
||||
|
||||
window.addEventListener('beforeunload', this.onBeforeUnload)
|
||||
|
||||
if (this.nativePlatform === 'ios') {
|
||||
this.viewportMeta = document.querySelector('meta[name="viewport"]')
|
||||
this.viewportContent = this.viewportMeta.getAttribute('content')
|
||||
this.viewportMeta.setAttribute('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0')
|
||||
}
|
||||
},
|
||||
beforeUnmount () {
|
||||
window.removeEventListener('beforeunload', this.onBeforeUnload)
|
||||
|
||||
this.viewportMeta?.setAttribute('content', this.viewportContent)
|
||||
|
||||
this.resizeObserver.unobserve(this.$refs.container)
|
||||
},
|
||||
beforeUpdate () {
|
||||
|
||||
Reference in new issue
Block a user