mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-29 07:18:08 +09:00
parent
d0f40fcf85
commit
77c6961c0f
@ -47,7 +47,8 @@ export default Vue.extend({
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
details: null,
|
details: null,
|
||||||
detailsTimeoutId: null
|
detailsTimeoutId: null,
|
||||||
|
isHovering: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -89,9 +90,11 @@ export default Vue.extend({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onMouseover() {
|
onMouseover() {
|
||||||
|
this.isHovering = true;
|
||||||
this.detailsTimeoutId = setTimeout(this.openDetails, 300);
|
this.detailsTimeoutId = setTimeout(this.openDetails, 300);
|
||||||
},
|
},
|
||||||
onMouseleave() {
|
onMouseleave() {
|
||||||
|
this.isHovering = false;
|
||||||
clearTimeout(this.detailsTimeoutId);
|
clearTimeout(this.detailsTimeoutId);
|
||||||
this.closeDetails();
|
this.closeDetails();
|
||||||
},
|
},
|
||||||
@ -104,6 +107,7 @@ export default Vue.extend({
|
|||||||
.map(x => x.user.username);
|
.map(x => x.user.username);
|
||||||
|
|
||||||
this.closeDetails();
|
this.closeDetails();
|
||||||
|
if (!this.isHovering) return;
|
||||||
this.details = this.$root.new(XDetails, {
|
this.details = this.$root.new(XDetails, {
|
||||||
reaction: this.reaction,
|
reaction: this.reaction,
|
||||||
users,
|
users,
|
||||||
|
Loading…
Reference in New Issue
Block a user