diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-02-18 12:37:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-02-18 12:37:18 +0900 |
| commit | b2c24af69e50bad3e925805a32f68be34a511664 (patch) | |
| tree | 94585fe5d008ea4696e56313f06e9a3679219e59 /src/web | |
| parent | wip (diff) | |
| download | misskey-b2c24af69e50bad3e925805a32f68be34a511664.tar.gz misskey-b2c24af69e50bad3e925805a32f68be34a511664.tar.bz2 misskey-b2c24af69e50bad3e925805a32f68be34a511664.zip | |
wip
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/desktop/views/components/dialog.vue | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/web/app/desktop/views/components/dialog.vue b/src/web/app/desktop/views/components/dialog.vue index f2be5e4433..af65d5d21e 100644 --- a/src/web/app/desktop/views/components/dialog.vue +++ b/src/web/app/desktop/views/components/dialog.vue @@ -32,20 +32,22 @@ export default Vue.extend({ } }, mounted() { - (this.$refs.bg as any).style.pointerEvents = 'auto'; - anime({ - targets: this.$refs.bg, - opacity: 1, - duration: 100, - easing: 'linear' - }); + this.$nextTick(() => { + (this.$refs.bg as any).style.pointerEvents = 'auto'; + anime({ + targets: this.$refs.bg, + opacity: 1, + duration: 100, + easing: 'linear' + }); - anime({ - targets: this.$refs.main, - opacity: 1, - scale: [1.2, 1], - duration: 300, - easing: [0, 0.5, 0.5, 1] + anime({ + targets: this.$refs.main, + opacity: 1, + scale: [1.2, 1], + duration: 300, + easing: [0, 0.5, 0.5, 1] + }); }); }, methods: { |