summaryrefslogtreecommitdiff
path: root/src/client/app/common
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-09-02 07:01:33 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-09-02 07:01:33 +0900
commite70d7edf419c2054b9255f7cbe340d6c1540f4f9 (patch)
tree27510de2e6231aaf93a4bd7ec7acaf795ee67eac /src/client/app/common
parent11.31.0 (diff)
downloadmisskey-e70d7edf419c2054b9255f7cbe340d6c1540f4f9.tar.gz
misskey-e70d7edf419c2054b9255f7cbe340d6c1540f4f9.tar.bz2
misskey-e70d7edf419c2054b9255f7cbe340d6c1540f4f9.zip
Fix #5380 (#5381)
Diffstat (limited to 'src/client/app/common')
-rw-r--r--src/client/app/common/views/components/reactions-viewer.reaction.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/reactions-viewer.reaction.vue b/src/client/app/common/views/components/reactions-viewer.reaction.vue
index 5bb9a9522e..9598fa6597 100644
--- a/src/client/app/common/views/components/reactions-viewer.reaction.vue
+++ b/src/client/app/common/views/components/reactions-viewer.reaction.vue
@@ -47,7 +47,8 @@ export default Vue.extend({
data() {
return {
details: null,
- detailsTimeoutId: null
+ detailsTimeoutId: null,
+ isHovering: false
};
},
computed: {
@@ -89,9 +90,11 @@ export default Vue.extend({
}
},
onMouseover() {
+ this.isHovering = true;
this.detailsTimeoutId = setTimeout(this.openDetails, 300);
},
onMouseleave() {
+ this.isHovering = false;
clearTimeout(this.detailsTimeoutId);
this.closeDetails();
},
@@ -104,6 +107,7 @@ export default Vue.extend({
.map(x => x.user.username);
this.closeDetails();
+ if (!this.isHovering) return;
this.details = this.$root.new(XDetails, {
reaction: this.reaction,
users,