1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-02-19 09:57:30 -06:00
This commit is contained in:
syuilo 2020-02-10 03:16:34 +09:00
parent 9ca60bad7f
commit 8df7864064
2 changed files with 1 additions and 10 deletions
src/client/components

View file

@ -1,5 +1,5 @@
<template>
<div class="fgmtyycl _panel" :style="{ top: top + 'px', left: left + 'px' }" @mouseover="() => { $emit('mouseover'); }" @mouseleave="() => { $emit('mouseleave'); }">
<div class="fgmtyycl _panel" :style="{ top: top + 'px', left: left + 'px' }">
<x-url-preview :url="url"/>
</div>
</template>

View file

@ -83,15 +83,6 @@ export default Vue.extend({
}
}).$mount();
this.preview.$on('mouseover', () => {
clearTimeout(this.hideTimer);
});
this.preview.$on('mouseleave', () => {
clearTimeout(this.showTimer);
this.hideTimer = setTimeout(this.closePreview, 500);
});
document.body.appendChild(this.preview.$el);
},
closePreview() {