adjust signing form

This commit is contained in:
Pete Matsyburka committed 2026-09-23 11:00:17 +03:00
1 parent 960d36f628
commit a588c2f4a4
3 files changed
+16

No files matched your search

+2
View File
@@ -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