From 361069314ffaa61a81b2189c2eec000a3d1d9c35 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 17 Sep 2021 22:39:15 +0900 Subject: Refine UI (#7806) * wip * wip * wip * wip * wip * wip * wip * wip * Update default.vue * wip --- src/client/ui/default.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/client/ui/default.vue') diff --git a/src/client/ui/default.vue b/src/client/ui/default.vue index eef693faef..a5ec243e9e 100644 --- a/src/client/ui/default.vue +++ b/src/client/ui/default.vue @@ -12,7 +12,7 @@ -
+
@@ -145,6 +145,15 @@ export default defineComponent({ } }, '*'); }, { passive: true }); + window.addEventListener('touchmove', ev => { + this.$refs.live2d.contentWindow.postMessage({ + type: 'moveCursor', + body: { + x: ev.touches[0].clientX - iframeRect.left, + y: ev.touches[0].clientY - iframeRect.top, + } + }, '*'); + }, { passive: true }); } }, -- cgit v1.2.3-freya