summaryrefslogtreecommitdiff
path: root/src/client/ui/default.vue
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-09-17 22:39:15 +0900
committerGitHub <noreply@github.com>2021-09-17 22:39:15 +0900
commit361069314ffaa61a81b2189c2eec000a3d1d9c35 (patch)
tree195271c503ef67b245503ca6fe945bd97a8ea83b /src/client/ui/default.vue
parentpopupで設定ページを表示すると、アカウントの削除ページ... (diff)
downloadmisskey-361069314ffaa61a81b2189c2eec000a3d1d9c35.tar.gz
misskey-361069314ffaa61a81b2189c2eec000a3d1d9c35.tar.bz2
misskey-361069314ffaa61a81b2189c2eec000a3d1d9c35.zip
Refine UI (#7806)
* wip * wip * wip * wip * wip * wip * wip * wip * Update default.vue * wip
Diffstat (limited to 'src/client/ui/default.vue')
-rw-r--r--src/client/ui/default.vue11
1 files changed, 10 insertions, 1 deletions
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 @@
</div>
</template>
- <main class="main" @contextmenu.stop="onContextmenu">
+ <main class="main" @contextmenu.stop="onContextmenu" :style="{ background: pageInfo?.bg }">
<header class="header" @click="onHeaderClick">
<XHeader :info="pageInfo" :back-button="true" @back="back()"/>
</header>
@@ -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 });
}
},