summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-07 12:30:16 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-07 12:30:16 +0900
commitc6dd932a0b755a63e72d00942ea1ba1fa6669506 (patch)
tree5ee49b6676d2dd5f5e57fa58e76dbf903b164835 /src/client/components
parent絵文字ピッカーの検索に絵文字をペーストしたとき確定... (diff)
downloadmisskey-c6dd932a0b755a63e72d00942ea1ba1fa6669506.tar.gz
misskey-c6dd932a0b755a63e72d00942ea1ba1fa6669506.tar.bz2
misskey-c6dd932a0b755a63e72d00942ea1ba1fa6669506.zip
Improve usability
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/ui/a.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/components/ui/a.vue b/src/client/components/ui/a.vue
index 384ee0259e..f6c66257b3 100644
--- a/src/client/components/ui/a.vue
+++ b/src/client/components/ui/a.vue
@@ -121,7 +121,11 @@ export default defineComponent({
return this.window();
}
- this.$router.push(this.to);
+ if (this.$router.currentRoute.value.path === this.to) {
+ window.scroll({ top: 0, behavior: 'smooth' });
+ } else {
+ this.$router.push(this.to);
+ }
}
}
}