mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
adjust signing form
This commit is contained in:
1 parent
960d36f628
commit
a588c2f4a4
3 files changed
+16
No files matched your search
@@ -1767,6 +1767,8 @@ export default {
|
||||
this.isCompleted = true
|
||||
this.isFormVisible = true
|
||||
|
||||
window.webkit?.messageHandlers?.native?.postMessage({ type: 'stale' })
|
||||
|
||||
if (resp?.text) {
|
||||
const respData = await resp.text()
|
||||
|
||||
|
||||
@@ -160,6 +160,9 @@
|
||||
role="img"
|
||||
:aria-label="t('initials_drawing_area')"
|
||||
class="bg-white border border-base-300 rounded-2xl w-full draw-canvas"
|
||||
@touchstart.passive="lockSwipe"
|
||||
@touchend.passive="unlockSwipe"
|
||||
@touchcancel.passive="unlockSwipe"
|
||||
/>
|
||||
</div>
|
||||
<input
|
||||
@@ -311,6 +314,8 @@ export default {
|
||||
this.intersectionObserver?.disconnect()
|
||||
},
|
||||
methods: {
|
||||
lockSwipe: SignatureStep.methods.lockSwipe,
|
||||
unlockSwipe: SignatureStep.methods.unlockSwipe,
|
||||
drawOnCanvas: SignatureStep.methods.drawOnCanvas,
|
||||
drawImage (event) {
|
||||
this.remove()
|
||||
|
||||
@@ -205,6 +205,9 @@
|
||||
:aria-label="t('signature_drawing_area')"
|
||||
style="padding: 1px; 0"
|
||||
class="bg-white border border-base-300 rounded-2xl w-full draw-canvas"
|
||||
@touchstart.passive="lockSwipe"
|
||||
@touchend.passive="unlockSwipe"
|
||||
@touchcancel.passive="unlockSwipe"
|
||||
/>
|
||||
<div
|
||||
v-if="isShowQr"
|
||||
@@ -576,6 +579,12 @@ export default {
|
||||
this.stopCheckSignature()
|
||||
},
|
||||
methods: {
|
||||
lockSwipe () {
|
||||
window.webkit?.messageHandlers?.native?.postMessage({ type: 'swipe', op: 'lock' })
|
||||
},
|
||||
unlockSwipe () {
|
||||
window.webkit?.messageHandlers?.native?.postMessage({ type: 'swipe', op: 'unlock' })
|
||||
},
|
||||
setCanvasSize () {
|
||||
const canvas = this.$refs.canvas
|
||||
|
||||
|
||||
Reference in new issue
Block a user