summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/components/window.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-18 14:50:13 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-18 14:50:13 +0900
commit5184a07cf2ba3e5faa703e2f0cfcf465187585ea (patch)
treed2460af9a7e998e8bcdb5a06b6037ab11bca9123 /src/client/app/desktop/views/components/window.vue
parentImprove keyboard shortcuts (diff)
downloadmisskey-5184a07cf2ba3e5faa703e2f0cfcf465187585ea.tar.gz
misskey-5184a07cf2ba3e5faa703e2f0cfcf465187585ea.tar.bz2
misskey-5184a07cf2ba3e5faa703e2f0cfcf465187585ea.zip
Improve usability
Diffstat (limited to 'src/client/app/desktop/views/components/window.vue')
-rw-r--r--src/client/app/desktop/views/components/window.vue17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/client/app/desktop/views/components/window.vue b/src/client/app/desktop/views/components/window.vue
index e6886956eb..5eece3795f 100644
--- a/src/client/app/desktop/views/components/window.vue
+++ b/src/client/app/desktop/views/components/window.vue
@@ -76,6 +76,11 @@ export default Vue.extend({
name: {
type: String,
default: null
+ },
+ animation: {
+ type: Boolean,
+ required: false,
+ default: true
}
},
@@ -142,7 +147,7 @@ export default Vue.extend({
anime({
targets: bg,
opacity: 1,
- duration: 100,
+ duration: this.animation ? 100 : 0,
easing: 'linear'
});
}
@@ -152,7 +157,7 @@ export default Vue.extend({
targets: main,
opacity: 1,
scale: [1.1, 1],
- duration: 200,
+ duration: this.animation ? 200 : 0,
easing: 'easeOutQuad'
});
@@ -160,7 +165,7 @@ export default Vue.extend({
setTimeout(() => {
this.$emit('opened');
- }, 300);
+ }, this.animation ? 300 : 0);
},
close() {
@@ -174,7 +179,7 @@ export default Vue.extend({
anime({
targets: bg,
opacity: 0,
- duration: 300,
+ duration: this.animation ? 300 : 0,
easing: 'linear'
});
}
@@ -185,14 +190,14 @@ export default Vue.extend({
targets: main,
opacity: 0,
scale: 0.8,
- duration: 300,
+ duration: this.animation ? 300 : 0,
easing: [0.5, -0.5, 1, 0.5]
});
setTimeout(() => {
this.$emit('closed');
this.destroyDom();
- }, 300);
+ }, this.animation ? 300 : 0);
},
popout() {